diff options
author | Max Kellermann <max@duempel.org> | 2008-11-12 08:25:06 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-12 08:25:06 +0100 |
commit | a9723e661a1c0bda6d48ab0f9bebcddaac656ffb (patch) | |
tree | ca8545b71744547172f49116413ee78298c40186 /src/decoder | |
parent | 35a4ca24211c3e85ed9827c7e687c0cb38b0f3f0 (diff) | |
download | mpd-a9723e661a1c0bda6d48ab0f9bebcddaac656ffb.tar.gz mpd-a9723e661a1c0bda6d48ab0f9bebcddaac656ffb.tar.xz mpd-a9723e661a1c0bda6d48ab0f9bebcddaac656ffb.zip |
aac: get decoder command from decoder_data()
Removed a superfluous decoder_get_command() call.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/aac_plugin.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/decoder/aac_plugin.c b/src/decoder/aac_plugin.c index 8990fa1ab..d0ed49712 100644 --- a/src/decoder/aac_plugin.c +++ b/src/decoder/aac_plugin.c @@ -319,6 +319,7 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream) uint16_t bitRate = 0; AacBuffer b; bool initialized = false; + enum decoder_command cmd; initAacBuffer(&b, mpd_decoder, inStream); aac_parse_header(&b, &totalTime); @@ -414,10 +415,10 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream) sampleBufferLen = sampleCount * 2; - decoder_data(mpd_decoder, NULL, sampleBuffer, - sampleBufferLen, file_time, - bitRate, NULL); - } while (decoder_get_command(mpd_decoder) == DECODE_COMMAND_NONE); + cmd = decoder_data(mpd_decoder, NULL, sampleBuffer, + sampleBufferLen, file_time, + bitRate, NULL); + } while (cmd == DECODE_COMMAND_NONE); faacDecClose(decoder); if (b.buffer) |