Commit eaf4ab98 authored by Marton Balint's avatar Marton Balint

ffplay: signal the frame queue before closing audio

Fixed regression caused by 631ac655 when ffplay
does not quit if the audio thread is blocked.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 2813dabd
......@@ -2786,9 +2786,8 @@ static void stream_component_close(VideoState *is, int stream_index)
switch (avctx->codec_type) {
case AVMEDIA_TYPE_AUDIO:
packet_queue_abort(&is->audioq);
SDL_CloseAudio();
frame_queue_signal(&is->sampq);
SDL_CloseAudio();
SDL_WaitThread(is->audio_tid, NULL);
decoder_destroy(&is->auddec);
......
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