diff --git a/ffplay.c b/ffplay.c index 490bffa8b10b3762240c30ff6f17a06ed3ed1711..f79161dd00601c4e1f20892fa07a73ce1ae2db3c 100644 --- a/ffplay.c +++ b/ffplay.c @@ -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);