summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-12-14 22:33:55 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-12-14 22:33:55 +0200
commitde3be1d9cafaa35b540e33a5f042804bef8e97d8 (patch)
tree1bd300b3c83861e0eadab4f00b374004f69f9bd7 /mplayer.c
parentff706ee86d4ca1e31de6c6c322a3bedb819ead05 (diff)
downloadmpv-de3be1d9cafaa35b540e33a5f042804bef8e97d8.tar.bz2
mpv-de3be1d9cafaa35b540e33a5f042804bef8e97d8.tar.xz
core: seek: use accurate seek mode with audio-only files
Allow more accurate absolute-only seeks even if there is no video.
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
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)