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:
wm4 2014-09-19 22:38:55 +02:00
parent 70f4721574
commit 116d1d0dfa
1 changed files with 1 additions and 1 deletions

View File

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