From de3be1d9cafaa35b540e33a5f042804bef8e97d8 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 14 Dec 2010 22:33:55 +0200 Subject: core: seek: use accurate seek mode with audio-only files Allow more accurate absolute-only seeks even if there is no video. --- mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index 9ad00beaf9..08a9666a7f 100644 --- a/mplayer.c +++ b/mplayer.c @@ -2866,7 +2866,7 @@ static int seek(MPContext *mpctx, double amount, int style) amount *= mpctx->timeline[mpctx->num_timeline_parts].start; style &= ~SEEK_FACTOR; } - if ((mpctx->demuxer->accurate_seek || mpctx->timeline) && mpctx->sh_video + if ((mpctx->demuxer->accurate_seek || mpctx->timeline) && !(style & (SEEK_ABSOLUTE | SEEK_FACTOR))) { style |= SEEK_ABSOLUTE; if (amount > 0) -- cgit v1.2.3