From bbdff34d696f24cd091ca91e37043872b01aae37 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 9 Feb 2012 00:36:53 +0100 Subject: core: add option to start in paused state The --paused option will start the player in paused state. That means it will start out with a still image of the first frame. This can be useful in combination with --ss to inspect a certain frame. Caveat: this plays a small bit of audio at the start, which might be perceived as an annoying artifact. This is because this is implemented by frame stepping after initialization in order to decode and display the first video frame. --- mplayer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index e74f53d65d..1c2bc7efa3 100644 --- a/mplayer.c +++ b/mplayer.c @@ -5002,6 +5002,9 @@ goto_enable_cache: vo_control(mpctx->video_out, mpctx->paused ? VOCTRL_PAUSE : VOCTRL_RESUME, NULL); + if (mpctx->opts.start_paused) + add_step_frame(mpctx); + while (!mpctx->stop_play) run_playloop(mpctx); -- cgit v1.2.3