gst/base/gstbasesrc.c: Don't unref the caps we passed to gst_caps_make_writable(...
authorTim-Philipp Müller <tim@centricular.net>
Sat, 16 Jul 2005 12:33:13 +0000 (12:33 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 16 Jul 2005 12:33:13 +0000 (12:33 +0000)
Original commit message from CVS:
* gst/base/gstbasesrc.c: (gst_base_src_default_negotiate):
Don't unref the caps we passed to gst_caps_make_writable() after
passing them. gst_caps_make_writable() will do that for us.

ChangeLog
gst/base/gstbasesrc.c
libs/gst/base/gstbasesrc.c

index c09cc20..eff957a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-16  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * gst/base/gstbasesrc.c: (gst_base_src_default_negotiate):
+         Don't unref the caps we passed to gst_caps_make_writable() after
+         passing them. gst_caps_make_writable() will do that for us.
+
 2005-07-15  Andy Wingo  <wingo@pobox.com>
 
        * gst/gstcaps.h (gst_caps_is_simple): Removed deprecated macro
index 1794109..88720a0 100644 (file)
@@ -785,11 +785,7 @@ gst_base_src_default_negotiate (GstBaseSrc * basesrc)
     caps = thiscaps;
   }
   if (caps) {
-    GstCaps *normalized;
-
-    normalized = gst_caps_make_writable (caps);
-    gst_caps_unref (caps);
-    caps = normalized;
+    caps = gst_caps_make_writable (caps);
     gst_caps_truncate (caps);
 
     gst_pad_fixate_caps (GST_BASE_SRC_PAD (basesrc), caps);
index 1794109..88720a0 100644 (file)
@@ -785,11 +785,7 @@ gst_base_src_default_negotiate (GstBaseSrc * basesrc)
     caps = thiscaps;
   }
   if (caps) {
-    GstCaps *normalized;
-
-    normalized = gst_caps_make_writable (caps);
-    gst_caps_unref (caps);
-    caps = normalized;
+    caps = gst_caps_make_writable (caps);
     gst_caps_truncate (caps);
 
     gst_pad_fixate_caps (GST_BASE_SRC_PAD (basesrc), caps);