mirror of
https://github.com/mpv-player/mpv
synced 2025-02-12 09:57:15 +00:00
core: seek: use accurate seek mode with audio-only files
Allow more accurate absolute-only seeks even if there is no video.
This commit is contained in:
parent
ff706ee86d
commit
de3be1d9ca
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user