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
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }