mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
971cc99020
commit
19cc524ab6
4
ffplay.c
4
ffplay.c
@ -2196,9 +2196,9 @@ static void toggle_pause(void)
|
|||||||
static void step_to_next_frame(void)
|
static void step_to_next_frame(void)
|
||||||
{
|
{
|
||||||
if (cur_stream) {
|
if (cur_stream) {
|
||||||
|
/* if the stream is paused unpause it, then step */
|
||||||
if (cur_stream->paused)
|
if (cur_stream->paused)
|
||||||
cur_stream->paused=0;
|
stream_pause(cur_stream);
|
||||||
cur_stream->video_current_pts = get_video_clock(cur_stream);
|
|
||||||
}
|
}
|
||||||
step = 1;
|
step = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user