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
78b08f03
Commit
78b08f03
authored
Oct 29, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder_api: don't cast need_chunks() to int
need_chunks() returns a decoder_command enum. Store its return value as this type.
parent
a0b57f37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
decoder_api.c
src/decoder_api.c
+4
-4
No files found.
src/decoder_api.c
View file @
78b08f03
...
...
@@ -165,7 +165,6 @@ decoder_data(struct decoder *decoder,
size_t
datalen
;
static
char
*
convBuffer
;
static
size_t
convBufferLen
;
int
ret
;
if
(
audio_format_equals
(
&
ob
.
audioFormat
,
&
dc
.
audioFormat
))
{
data
=
dataIn
;
...
...
@@ -196,9 +195,10 @@ decoder_data(struct decoder *decoder,
data
+=
nbytes
;
if
(
datalen
>
0
)
{
ret
=
need_chunks
(
decoder
,
inStream
,
seekable
);
if
(
ret
!=
0
)
return
ret
;
enum
decoder_command
cmd
=
need_chunks
(
decoder
,
inStream
,
seekable
);
if
(
cmd
!=
DECODE_COMMAND_NONE
)
return
cmd
;
}
}
...
...
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