Commit a41c7472 authored by benoit's avatar benoit

Corrected pause handling when using the 's' step by frame key.

patch by Craig Nicol: [craig nicol /\ ed ac uk]
original thread:[FFmpeg-devel] [PATCH] FFplay speedup if stepping whilst paused
date: 08/02/2007 12:39 PM


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10244 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1d0b13da
......@@ -2196,9 +2196,9 @@ static void toggle_pause(void)
static void step_to_next_frame(void)
{
if (cur_stream) {
/* if the stream is paused unpause it, then step */
if (cur_stream->paused)
cur_stream->paused=0;
cur_stream->video_current_pts = get_video_clock(cur_stream);
stream_pause(cur_stream);
}
step = 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment