vc1parse: unref caps when it is empty in renegotiate()
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Wed, 1 Oct 2014 14:19:02 +0000 (16:19 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 2 Oct 2014 07:43:49 +0000 (10:43 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=737724

gst/videoparsers/gstvc1parse.c

index c2235ce1b71bf1ad4a906c1a81bd0982b83488ac..39fd6d00d9cf8e2ff88186eb446a0e8bfd653ea0 100644 (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");