Browse code

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@passwd.hu>

Marton Balint authored on 2014/10/11 06:57:26
Showing 1 changed files
... ...
@@ -2122,9 +2122,6 @@ static int video_thread(void *arg)
2122 2122
 #endif
2123 2123
 
2124 2124
     for (;;) {
2125
-        while (is->paused && !is->videoq.abort_request)
2126
-            SDL_Delay(10);
2127
-
2128 2125
         ret = get_video_frame(is, frame);
2129 2126
         if (ret < 0)
2130 2127
             goto the_end;
... ...
@@ -2211,10 +2208,6 @@ static int subtitle_thread(void *arg)
2211 2211
     int r, g, b, y, u, v, a;
2212 2212
 
2213 2213
     for (;;) {
2214
-        while (is->paused && !is->subtitleq.abort_request) {
2215
-            SDL_Delay(10);
2216
-        }
2217
-
2218 2214
         if (!(sp = frame_queue_peek_writable(&is->subpq)))
2219 2215
             return 0;
2220 2216