diff options
author | Marton Balint <cus@passwd.hu> | 2014-10-10 23:57:26 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2014-10-17 23:44:04 +0200 |
commit | 9dac7977a981dfd13fb17a07c7ac97ec29dd3f31 (patch) | |
tree | f3ae6cf7cad0d82b1c69d64c086d26f58b1433b8 | |
parent | 75c8d7c2b4972f6ba2cef605949f57322f7c0361 (diff) | |
download | ffmpeg-9dac7977a981dfd13fb17a07c7ac97ec29dd3f31.tar.gz |
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>
-rw-r--r-- | ffplay.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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; |