decodebin: Free factories array when delaying autoplugging due to non-final caps

This commit is contained in:
Sebastian Dröge 2014-10-06 10:15:13 +03:00
parent 2c4bd2296a
commit 72eb84a900

View file

@ -1756,6 +1756,7 @@ analyze_new_pad (GstDecodeBin * dbin, GstElement * src, GstPad * pad,
if (!caps) {
GST_DEBUG_OBJECT (dbin, "No final caps set yet, delaying autoplugging");
gst_object_unref (dpad);
g_value_array_free (factories);
goto setup_caps_delay;
}
}