From 116d1d0dfabfcc04de4c6c3171c003b0319d0fa1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 19 Sep 2014 22:38:55 +0200 Subject: [PATCH] player: use backwards flag for seeking external tracks Otherwise, the external track could end up at a position that's too late. --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/playloop.c b/player/playloop.c index 31bf58e722..af3db40022 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -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); } }