mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 18:32:22 +00:00
ffplay: move frame step pause from the video thread to video_refresh
This way we pause the video right after we displayed a new frame. Partially fixes ticket #2053. Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
507956824c
commit
97660b8b13
6
ffplay.c
6
ffplay.c
@ -1396,6 +1396,9 @@ display:
|
|||||||
video_display(is);
|
video_display(is);
|
||||||
|
|
||||||
pictq_next_picture(is);
|
pictq_next_picture(is);
|
||||||
|
|
||||||
|
if (is->step && !is->paused)
|
||||||
|
stream_toggle_pause(is);
|
||||||
}
|
}
|
||||||
} else if (is->audio_st) {
|
} else if (is->audio_st) {
|
||||||
/* draw the next audio frame */
|
/* draw the next audio frame */
|
||||||
@ -1923,9 +1926,6 @@ static int video_thread(void *arg)
|
|||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto the_end;
|
goto the_end;
|
||||||
|
|
||||||
if (is->step)
|
|
||||||
stream_toggle_pause(is);
|
|
||||||
}
|
}
|
||||||
the_end:
|
the_end:
|
||||||
avcodec_flush_buffers(is->video_st->codec);
|
avcodec_flush_buffers(is->video_st->codec);
|
||||||
|
Loading…
Reference in New Issue
Block a user