diff options
author | Max Kellermann <max@duempel.org> | 2008-10-29 16:11:15 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-29 16:11:15 +0100 |
commit | 78b08f03f2680350e4747b0769787856e564dd0d (patch) | |
tree | b476c377853425044d08b020dba003b5bb1a77ea /src | |
parent | a0b57f378224a1711ad2dcbede9b1adadf577dce (diff) | |
download | mpd-78b08f03f2680350e4747b0769787856e564dd0d.tar.gz mpd-78b08f03f2680350e4747b0769787856e564dd0d.tar.xz mpd-78b08f03f2680350e4747b0769787856e564dd0d.zip |
decoder_api: don't cast need_chunks() to int
need_chunks() returns a decoder_command enum. Store its return value
as this type.
Diffstat (limited to '')
-rw-r--r-- | src/decoder_api.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c index 27994d300..a82b6c162 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -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; } } |