commit | 677d052e842ea38886330046f7c77620ea5bb1eb | [log] [tgz] |
---|---|---|
author | Aurélien Zanelli <aurelien.zanelli@parrot.com> | Wed Oct 01 16:19:02 2014 +0200 |
committer | Sebastian Dröge <sebastian@centricular.com> | Thu Oct 02 10:43:49 2014 +0300 |
tree | 7f2208f359fba8d1385d3dba8e6bcc9e352d440c | |
parent | 66a4572c125f63f48761d572f99de736754920da [diff] |
vc1parse: unref caps when it is empty in renegotiate() https://bugzilla.gnome.org/show_bug.cgi?id=737724
diff --git a/gst/videoparsers/gstvc1parse.c b/gst/videoparsers/gstvc1parse.c index c2235ce..39fd6d0 100644 --- a/gst/videoparsers/gstvc1parse.c +++ b/gst/videoparsers/gstvc1parse.c
@@ -345,6 +345,7 @@ } } 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");