Revert "baseparse: don't leak caps in gst_base_parse_process_streamheader"
authorTim-Philipp Müller <tim@centricular.com>
Fri, 3 Oct 2014 08:01:15 +0000 (09:01 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 3 Oct 2014 08:01:39 +0000 (09:01 +0100)
This reverts commit 5e8b4bf085180f7a4c7ae6ec0f525baeaedd4df8.

This causes refcounting criticals in the baseparse unit test.

libs/gst/base/gstbaseparse.c

index 7f29afa..8fd1103 100644 (file)
@@ -2756,16 +2756,10 @@ gst_base_parse_process_streamheader (GstBaseParse * parse)
         GST_OBJECT_CAST (parse), gst_buffer_ref (buffer));
   }
 
-  gst_caps_unref (caps);
-
   return ret;
 
 notfound:
   {
-    if (caps) {
-      gst_caps_unref (caps);
-    }
-
     GST_DEBUG_OBJECT (parse, "No streamheader on caps");
     return GST_FLOW_OK;
   }