summaryrefslogtreecommitdiffstats
path: root/demux/demux.c
diff options
context:
space:
mode:
Diffstat (limited to 'demux/demux.c')
-rw-r--r--demux/demux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/demux/demux.c b/demux/demux.c
index f65d606b92..0582ccc661 100644
--- a/demux/demux.c
+++ b/demux/demux.c
@@ -1393,9 +1393,7 @@ static void find_backward_restart_pos(struct demux_stream *ds)
}
if (!target) {
- // Note: assume this holds true. You could think of various reasons why
- // this might break.
- if (ds->queue->is_bof) {
+ if (ds->queue->is_bof && first == ds->queue->head) {
MP_VERBOSE(in, "BOF for stream %d\n", ds->index);
ds->back_restarting = false;
ds->back_range_started = false;