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:
wm4 2020-02-20 15:21:27 +01:00
parent 0020b47ffd
commit bd6d8d320f
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}