diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/decoder_api.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c index 695ca0281..19de47855 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -89,6 +89,12 @@ decoder_prepare_initial_seek(struct decoder *decoder) const struct decoder_control *dc = decoder->dc; assert(dc->pipe != NULL); + if (dc->state != DECODE_STATE_DECODE) + /* wait until the decoder has finished initialisation + (reading file headers etc.) before emitting the + virtual "SEEK" command */ + return false; + if (decoder->initial_seek_running) /* initial seek has already begun - override any other command */ |