From: Tim-Philipp Müller Date: Sat, 16 Jul 2005 12:33:13 +0000 (+0000) Subject: gst/base/gstbasesrc.c: Don't unref the caps we passed to gst_caps_make_writable(... X-Git-Tag: RELEASE-0_9_2~230 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d34751b8c2300c847601420639896bbbb39b0ecd;p=platform%2Fupstream%2Fgstreamer.git gst/base/gstbasesrc.c: Don't unref the caps we passed to gst_caps_make_writable() after passing them. gst_caps_make_w... 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. --- diff --git a/ChangeLog b/ChangeLog index c09cc20..eff957a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-16 Tim-Philipp Müller + + * 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 * gst/gstcaps.h (gst_caps_is_simple): Removed deprecated macro diff --git a/gst/base/gstbasesrc.c b/gst/base/gstbasesrc.c index 1794109..88720a0 100644 --- a/gst/base/gstbasesrc.c +++ b/gst/base/gstbasesrc.c @@ -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); diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 1794109..88720a0 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -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);