videomixer: Unref allowed caps after usage

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734474
This commit is contained in:
Sebastian Rasmussen 2014-08-08 12:36:01 +02:00 committed by Thiago Santos
parent c85ae43a6e
commit 1fa61632fe

View file

@ -316,8 +316,11 @@ gst_videomixer2_update_converters (GstVideoMixer2 * mix)
downstream_caps = gst_pad_get_allowed_caps (mix->srcpad);
if (!downstream_caps || gst_caps_is_empty (downstream_caps))
if (!downstream_caps || gst_caps_is_empty (downstream_caps)) {
if (downstream_caps)
gst_caps_unref (downstream_caps);
return FALSE;
}
formats_table = g_hash_table_new (g_direct_hash, g_direct_equal);