diff options
author | Marton Balint <cus@passwd.hu> | 2012-08-29 23:56:33 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2012-08-31 21:00:20 +0200 |
commit | 55594447d635a89d6b0183299f2bf8e27e8a0d42 (patch) | |
tree | 1cc1bd774cb0505fd94e759d3486d94405ffdd77 /ffplay.c | |
parent | 0e5042be284182823223a8c3d0006298ba16c921 (diff) | |
download | ffmpeg-55594447d635a89d6b0183299f2bf8e27e8a0d42.tar.gz |
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>
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |