summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorCraig Nicol <craig.nicol@ed.ac.uk>2007-08-27 08:06:48 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-08-27 08:06:48 +0000
commit19cc524ab64ecdb925f4eee8481e5ddcb2566964 (patch)
tree4ebb4b6e7a085af49b7f56f9c47da123285063f7 /ffplay.c
parent971cc99020d4dc6d372966a16c1120490b81a963 (diff)
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
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffplay.c b/ffplay.c
index f13c85d2ca..76092a3498 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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;
}