1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

ffplay: only free vfilters on exit

Freeing it in the end of the video thread is not a good idea, because we still
may need the filter names for the next video thread, in order to apply the
filters after chaning the video stream.

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2012-08-29 23:56:33 +02:00
parent 0e5042be28
commit 55594447d6

View File

@ -938,6 +938,7 @@ static void do_exit(VideoState *is)
uninit_opts();
#if CONFIG_AVFILTER
avfilter_uninit();
av_freep(&vfilters);
#endif
avformat_network_deinit();
if (show_status)
@ -1790,7 +1791,6 @@ static int video_thread(void *arg)
the_end:
avcodec_flush_buffers(is->video_st->codec);
#if CONFIG_AVFILTER
av_freep(&vfilters);
avfilter_graph_free(&graph);
#endif
av_free_packet(&pkt);