diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-12-14 22:33:55 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-12-14 22:33:55 +0200 |
commit | de3be1d9cafaa35b540e33a5f042804bef8e97d8 (patch) | |
tree | 1bd300b3c83861e0eadab4f00b374004f69f9bd7 | |
parent | ff706ee86d4ca1e31de6c6c322a3bedb819ead05 (diff) | |
download | mpv-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.
-rw-r--r-- | mplayer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |