0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

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:
Uoti Urpala 2011-09-04 22:12:51 +03:00
parent b948dd3461
commit 159102e0cb

View File

@ -3817,7 +3817,7 @@ static void run_playloop(struct MPContext *mpctx)
}
// handle -sstep
if (step_sec > 0 && !mpctx->paused) {
if (step_sec > 0 && !mpctx->paused && !mpctx->restart_playback) {
mpctx->osd_function = OSD_FFW;
queue_seek(mpctx, MPSEEK_RELATIVE, step_sec, 0);
}