You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-06 08:29:25 +02:00
ffplay: fix autoexit doesn't work in the case of pb->error
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
committed by
Marton Balint
parent
d1f3d721df
commit
99e12b5736
@@ -3028,8 +3028,12 @@ static int read_thread(void *arg)
|
|||||||
packet_queue_put_nullpacket(&is->subtitleq, is->subtitle_stream);
|
packet_queue_put_nullpacket(&is->subtitleq, is->subtitle_stream);
|
||||||
is->eof = 1;
|
is->eof = 1;
|
||||||
}
|
}
|
||||||
if (ic->pb && ic->pb->error)
|
if (ic->pb && ic->pb->error) {
|
||||||
break;
|
if (autoexit)
|
||||||
|
goto fail;
|
||||||
|
else
|
||||||
|
break;
|
||||||
|
}
|
||||||
SDL_LockMutex(wait_mutex);
|
SDL_LockMutex(wait_mutex);
|
||||||
SDL_CondWaitTimeout(is->continue_read_thread, wait_mutex, 10);
|
SDL_CondWaitTimeout(is->continue_read_thread, wait_mutex, 10);
|
||||||
SDL_UnlockMutex(wait_mutex);
|
SDL_UnlockMutex(wait_mutex);
|
||||||
|
|||||||
Reference in New Issue
Block a user