ffplay: remove delays when paused from video and subtitle thread
authorMarton Balint <cus@passwd.hu>
Fri, 10 Oct 2014 21:57:26 +0000 (23:57 +0200)
committerMarton Balint <cus@passwd.hu>
Fri, 17 Oct 2014 21:44:04 +0000 (23:44 +0200)
Once the frame queue is full, we will wait anyway.

Signed-off-by: Marton Balint <cus@passwd.hu>
ffplay.c

index 6a6829e..61e2f18 100644 (file)
--- 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;