Commit 9dac7977 authored by Marton Balint's avatar 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: 's avatarMarton Balint <cus@passwd.hu>
parent 75c8d7c2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment