diff options
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c index ff1573dca5..1a2495e8a9 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -1516,6 +1516,11 @@ static void add_packet_locked(struct sh_stream *stream, demux_packet_t *dp) } } + // Don't process the packet further if it's skipped by the previous seek + // (see reader_head check/assignment above). + if (!ds->reader_head) + return; + // (should preferably be outside of the lock) if (in->enable_recording && !in->recorder && in->opts->record_file && in->opts->record_file[0]) |