mirror of https://github.com/mpv-player/mpv
player: use backwards flag for seeking external tracks
Otherwise, the external track could end up at a position that's too late.
This commit is contained in:
parent
70f4721574
commit
116d1d0dfa
|
@ -258,7 +258,7 @@ static int mp_seek(MPContext *mpctx, struct seek_params seek,
|
|||
if (seek.type != MPSEEK_ABSOLUTE)
|
||||
main_new_pos = get_main_demux_pts(mpctx);
|
||||
main_new_pos -= get_track_video_offset(mpctx, track);
|
||||
demux_seek(track->demuxer, main_new_pos, SEEK_ABSOLUTE);
|
||||
demux_seek(track->demuxer, main_new_pos, SEEK_ABSOLUTE | SEEK_BACKWARD);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue