From 487e05c67dae84e15cf09b1dd9d2f9fad55a262a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 12 Nov 2008 08:25:09 +0100 Subject: 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. --- src/decoder/aac_plugin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3