aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/decoder/aac_plugin.c4
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)