diff options
author | wm4 <wm4@nowhere> | 2019-07-28 03:04:04 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:05 +0200 |
commit | 4c5df406a8807f7ec6735b48f701f3e9db8765aa (patch) | |
tree | a7eda56b1681aa2aef70be9310a84ec7d8c58fd4 /demux | |
parent | 380033f4a2a2c9bf1bd42cab8bd27b2b83186a98 (diff) | |
download | mpv-4c5df406a8807f7ec6735b48f701f3e9db8765aa.tar.bz2 mpv-4c5df406a8807f7ec6735b48f701f3e9db8765aa.tar.xz |
demux: fix another incorrect BOF cache flag issue
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/demux/demux.c b/demux/demux.c index a26e3a155c..4cefd1e0dc 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -2166,8 +2166,11 @@ static bool read_packet(struct demux_internal *in) return false; if (in->after_seek_to_start) { - for (int n = 0; n < in->num_streams; n++) - in->current_range->streams[n]->is_bof = in->streams[n]->ds->selected; + for (int n = 0; n < in->num_streams; n++) { + struct demux_stream *ds = in->streams[n]->ds; + in->current_range->streams[n]->is_bof = + ds->selected && !ds->refreshing; + } } // Actually read a packet. Drop the lock while doing so, because waiting |