mirror of https://github.com/mpv-player/mpv
demux_timeline: don't open every delayed-open track on seeking
Now this was stupid. To seek a source, it obviously has to be opened... so just don't try to seek any unused source. If the track is actually selected during playback, a seek to the correct position is performed anyway.
This commit is contained in:
parent
0020b47ffd
commit
bd6d8d320f
|
@ -466,7 +466,7 @@ static void d_seek(struct demuxer *demuxer, double seek_pts, int flags)
|
|||
|
||||
for (int x = 0; x < p->num_sources; x++) {
|
||||
struct virtual_source *src = p->sources[x];
|
||||
if (src != master)
|
||||
if (src != master && src->any_selected)
|
||||
seek_source(demuxer, src, seek_pts, flags);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue