diff options
author | Max Kellermann <max@duempel.org> | 2008-11-12 08:25:09 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-12 08:25:09 +0100 |
commit | 487e05c67dae84e15cf09b1dd9d2f9fad55a262a (patch) | |
tree | 5c48dd6a0f55c64afd89c1143b3fe4ea66be3450 /src/decoder/aac_plugin.c | |
parent | a9723e661a1c0bda6d48ab0f9bebcddaac656ffb (diff) | |
download | mpd-487e05c67dae84e15cf09b1dd9d2f9fad55a262a.tar.gz mpd-487e05c67dae84e15cf09b1dd9d2f9fad55a262a.tar.xz mpd-487e05c67dae84e15cf09b1dd9d2f9fad55a262a.zip |
aac: reject SEEK commands
The aac plugin does not support seeking. Reject SEEK requests by
calling decoder_seek_error(). Quit the plugin's main loop only when
STOP is received.
Diffstat (limited to 'src/decoder/aac_plugin.c')
-rw-r--r-- | src/decoder/aac_plugin.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/decoder/aac_plugin.c b/src/decoder/aac_plugin.c index d0ed49712..fea15fa5b 100644 --- a/src/decoder/aac_plugin.c +++ b/src/decoder/aac_plugin.c @@ -418,7 +418,9 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream) cmd = decoder_data(mpd_decoder, NULL, sampleBuffer, sampleBufferLen, file_time, bitRate, NULL); - } while (cmd == DECODE_COMMAND_NONE); + if (cmd == DECODE_COMMAND_SEEK) + decoder_seek_error(mpd_decoder); + } while (cmd != DECODE_COMMAND_STOP); faacDecClose(decoder); if (b.buffer) |