mirror of https://github.com/mpv-player/mpv
core: fix --sstep
The --step option had broken at some point. Probably nobody uses it, but it was easy to fix.
This commit is contained in:
parent
b948dd3461
commit
159102e0cb
|
@ -3817,7 +3817,7 @@ static void run_playloop(struct MPContext *mpctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle -sstep
|
// handle -sstep
|
||||||
if (step_sec > 0 && !mpctx->paused) {
|
if (step_sec > 0 && !mpctx->paused && !mpctx->restart_playback) {
|
||||||
mpctx->osd_function = OSD_FFW;
|
mpctx->osd_function = OSD_FFW;
|
||||||
queue_seek(mpctx, MPSEEK_RELATIVE, step_sec, 0);
|
queue_seek(mpctx, MPSEEK_RELATIVE, step_sec, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue