Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
3d95226f
Commit
3d95226f
authored
Dec 15, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder_internal: decoder_input_buffer() returns bool
This fixes a regression: a boolean value was returned from decoder_input_buffer(), but the caller chose to do a "<= 0" comparison.
parent
b12072e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
decoder_internal.c
src/decoder_internal.c
+4
-4
No files found.
src/decoder_internal.c
View file @
3d95226f
...
...
@@ -34,16 +34,16 @@
* calling input_stream_buffer(). We shouldn't hold the lock during a
* potentially blocking operation.
*/
static
int
static
bool
decoder_input_buffer
(
struct
decoder_control
*
dc
,
struct
input_stream
*
is
)
{
int
ret
;
decoder_unlock
(
dc
);
ret
=
input_stream_buffer
(
is
)
>
0
;
ret
=
input_stream_buffer
(
is
);
decoder_lock
(
dc
);
return
ret
;
return
ret
>
0
;
}
/**
...
...
@@ -57,7 +57,7 @@ need_chunks(struct decoder_control *dc, struct input_stream *is, bool do_wait)
dc
->
command
==
DECODE_COMMAND_SEEK
)
return
dc
->
command
;
if
((
is
==
NULL
||
decoder_input_buffer
(
dc
,
is
)
<=
0
)
&&
do_wait
)
{
if
((
is
==
NULL
||
!
decoder_input_buffer
(
dc
,
is
)
)
&&
do_wait
)
{
decoder_wait
(
dc
);
player_signal
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment