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.
This commit is contained in:
parent
a9723e661a
commit
487e05c67d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue