Commit 487e05c6 authored by Max Kellermann's avatar Max Kellermann

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.
parent a9723e66
...@@ -418,7 +418,9 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream) ...@@ -418,7 +418,9 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream)
cmd = decoder_data(mpd_decoder, NULL, sampleBuffer, cmd = decoder_data(mpd_decoder, NULL, sampleBuffer,
sampleBufferLen, file_time, sampleBufferLen, file_time,
bitRate, NULL); bitRate, NULL);
} while (cmd == DECODE_COMMAND_NONE); if (cmd == DECODE_COMMAND_SEEK)
decoder_seek_error(mpd_decoder);
} while (cmd != DECODE_COMMAND_STOP);
faacDecClose(decoder); faacDecClose(decoder);
if (b.buffer) if (b.buffer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment