Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-12-26 01:35:53 +0400
committerMarton Balint <cus@passwd.hu>2012-12-28 22:59:46 +0400
commit97660b8b137fd3161d669f2e894740af75608c04 (patch)
tree2dc81d7b19a7432c75aec619efb5d88fd5263c57 /ffplay.c
parent507956824c642e44b0ab7af669a2700c9e57878a (diff)
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>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffplay.c b/ffplay.c
index 38673b5de1..070fbd7ea6 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1396,6 +1396,9 @@ display:
video_display(is);
pictq_next_picture(is);
+
+ if (is->step && !is->paused)
+ stream_toggle_pause(is);
}
} else if (is->audio_st) {
/* draw the next audio frame */
@@ -1923,9 +1926,6 @@ static int video_thread(void *arg)
if (ret < 0)
goto the_end;
-
- if (is->step)
- stream_toggle_pause(is);
}
the_end:
avcodec_flush_buffers(is->video_st->codec);