Commit 998d9a82 authored by Max Kellermann's avatar Max Kellermann

decoder: ignore SEEK commands during initialization

When the decoder receives a SEEK during initialization, it should ignore that for now. The old code made most decoders abort.
parent 1178e485
......@@ -109,8 +109,11 @@ size_t decoder_read(struct decoder *decoder,
while (true) {
/* XXX don't allow decoder==NULL */
if (decoder != NULL &&
/* ignore the SEEK command during initialization,
the plugin should handle that after it has
initialized successfully */
(dc.command != DECODE_COMMAND_SEEK ||
!decoder->seeking) &&
(dc.state != DECODE_STATE_START && !decoder->seeking)) &&
dc.command != DECODE_COMMAND_NONE)
return 0;
......
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