decoder_api: don't cast need_chunks() to int
need_chunks() returns a decoder_command enum. Store its return value as this type.
This commit is contained in:
parent
a0b57f3782
commit
78b08f03f2
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user