[FFmpeg-cvslog] ffplay: remove delays when paused from video and subtitle thread

Marton Balint git at videolan.org
Sat Oct 18 01:32:18 CEST 2014


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Fri Oct 10 23:57:26 2014 +0200| [9dac7977a981dfd13fb17a07c7ac97ec29dd3f31] | committer: Marton Balint

ffplay: remove delays when paused from video and subtitle thread

Once the frame queue is full, we will wait anyway.

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9dac7977a981dfd13fb17a07c7ac97ec29dd3f31
---

 ffplay.c |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index 6a6829e..61e2f18 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2122,9 +2122,6 @@ static int video_thread(void *arg)
 #endif
 
     for (;;) {
-        while (is->paused && !is->videoq.abort_request)
-            SDL_Delay(10);
-
         ret = get_video_frame(is, frame);
         if (ret < 0)
             goto the_end;
@@ -2211,10 +2208,6 @@ static int subtitle_thread(void *arg)
     int r, g, b, y, u, v, a;
 
     for (;;) {
-        while (is->paused && !is->subtitleq.abort_request) {
-            SDL_Delay(10);
-        }
-
         if (!(sp = frame_queue_peek_writable(&is->subpq)))
             return 0;
 



More information about the ffmpeg-cvslog mailing list