Browse code

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

Originally committed as revision 10244 to svn://svn.ffmpeg.org/ffmpeg/trunk

Craig Nicol authored on 2007/08/27 17:06:48
Showing 1 changed files
... ...
@@ -2196,9 +2196,9 @@ static void toggle_pause(void)
2196 2196
 static void step_to_next_frame(void)
2197 2197
 {
2198 2198
     if (cur_stream) {
2199
+        /* if the stream is paused unpause it, then step */
2199 2200
         if (cur_stream->paused)
2200
-            cur_stream->paused=0;
2201
-        cur_stream->video_current_pts = get_video_clock(cur_stream);
2201
+            stream_pause(cur_stream);
2202 2202
     }
2203 2203
     step = 1;
2204 2204
 }