vc1parse: unref caps when it is empty in renegotiate()

https://bugzilla.gnome.org/show_bug.cgi?id=737724
This commit is contained in:
Aurélien Zanelli 2014-10-01 16:19:02 +02:00 committed by Sebastian Dröge
parent 66a4572c12
commit 677d052e84

View file

@ -345,6 +345,7 @@ gst_vc1_parse_renegotiate (GstVC1Parse * vc1parse)
}
} else if (gst_caps_is_empty (allowed_caps)) {
GST_ERROR_OBJECT (vc1parse, "Empty caps");
gst_caps_unref (allowed_caps);
return FALSE;
} else {
GST_DEBUG_OBJECT (vc1parse, "Using input header/stream format");