提交 80f9f8e1 编写于 作者: Z Zhang Rui

ff_ffplay: merge eaf4ab9802d5ad82a707514cae165c6db9e7bfc8

ffplay: signal the frame queue before closing audio

Fixed regression caused by 631ac655c00e978e19d05dab572bc1ffd6078c63 when ffplay
does not quit if the audio thread is blocked.
上级 b1245d43
......@@ -2065,8 +2065,8 @@ static void stream_component_close(FFPlayer *ffp, int stream_index)
case AVMEDIA_TYPE_AUDIO:
packet_queue_abort(&is->audioq);
SDL_AoutCloseAudio(ffp->aout);
frame_queue_signal(&is->sampq);
SDL_AoutCloseAudio(ffp->aout);
SDL_WaitThread(is->audio_tid, NULL);
decoder_destroy(&is->auddec);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册