You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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>
This commit is contained in:
7
ffplay.c
7
ffplay.c
@@ -2122,9 +2122,6 @@ static int video_thread(void *arg)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
while (is->paused && !is->videoq.abort_request)
|
|
||||||
SDL_Delay(10);
|
|
||||||
|
|
||||||
ret = get_video_frame(is, frame);
|
ret = get_video_frame(is, frame);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto the_end;
|
goto the_end;
|
||||||
@@ -2211,10 +2208,6 @@ static int subtitle_thread(void *arg)
|
|||||||
int r, g, b, y, u, v, a;
|
int r, g, b, y, u, v, a;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
while (is->paused && !is->subtitleq.abort_request) {
|
|
||||||
SDL_Delay(10);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!(sp = frame_queue_peek_writable(&is->subpq)))
|
if (!(sp = frame_queue_peek_writable(&is->subpq)))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user