avviddec: Fix structure memory leak

gst_structure_copy already takes a reference for config_copy.
No need to take another reference while setting it to buffer pool

https://bugzilla.gnome.org/show_bug.cgi?id=758512
This commit is contained in:
Vineeth T M 2015-11-23 10:31:39 +09:00 committed by Thiago Santos
parent 598f71d12c
commit 839a72f92c

View file

@ -1854,7 +1854,7 @@ gst_ffmpegviddec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
config_copy); config_copy);
/* FIXME validate and retry */ /* FIXME validate and retry */
if (gst_buffer_pool_set_config (pool, gst_structure_copy (config_copy))) { if (gst_buffer_pool_set_config (pool, config_copy)) {
GstFlowReturn ret; GstFlowReturn ret;
GstBuffer *tmp; GstBuffer *tmp;