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:
Max Kellermann 2008-11-12 08:25:09 +01:00
parent a9723e661a
commit 487e05c67d
1 changed files with 3 additions and 1 deletions

View File

@ -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)