decoder: check dc.command at the beginning of decoder_data()
Seeking was somewhat broken in some decoder plugins because they sent empty chunks, and never got a command. Check the decoder command before doing anything else in decoder_data().
This commit is contained in:
parent
709640422c
commit
1a3945b563
@ -187,6 +187,10 @@ decoder_data(struct decoder *decoder,
|
|||||||
|
|
||||||
assert(dc.state == DECODE_STATE_DECODE);
|
assert(dc.state == DECODE_STATE_DECODE);
|
||||||
|
|
||||||
|
if (dc.command == DECODE_COMMAND_STOP ||
|
||||||
|
dc.command == DECODE_COMMAND_SEEK)
|
||||||
|
return dc.command;
|
||||||
|
|
||||||
if (is != NULL && !decoder->stream_tag_sent) {
|
if (is != NULL && !decoder->stream_tag_sent) {
|
||||||
const struct tag *src;
|
const struct tag *src;
|
||||||
struct tag *tag1, *tag2;
|
struct tag *tag1, *tag2;
|
||||||
|
Loading…
Reference in New Issue
Block a user