Commit 55594447 authored by Marton Balint's avatar Marton Balint

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: 's avatarMarton Balint <cus@passwd.hu>
parent 0e5042be
...@@ -938,6 +938,7 @@ static void do_exit(VideoState *is) ...@@ -938,6 +938,7 @@ static void do_exit(VideoState *is)
uninit_opts(); uninit_opts();
#if CONFIG_AVFILTER #if CONFIG_AVFILTER
avfilter_uninit(); avfilter_uninit();
av_freep(&vfilters);
#endif #endif
avformat_network_deinit(); avformat_network_deinit();
if (show_status) if (show_status)
...@@ -1790,7 +1791,6 @@ static int video_thread(void *arg) ...@@ -1790,7 +1791,6 @@ static int video_thread(void *arg)
the_end: the_end:
avcodec_flush_buffers(is->video_st->codec); avcodec_flush_buffers(is->video_st->codec);
#if CONFIG_AVFILTER #if CONFIG_AVFILTER
av_freep(&vfilters);
avfilter_graph_free(&graph); avfilter_graph_free(&graph);
#endif #endif
av_free_packet(&pkt); av_free_packet(&pkt);
......
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