From d34751b8c2300c847601420639896bbbb39b0ecd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 16 Jul 2005 12:33:13 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ gst/base/gstbasesrc.c | 6 +----- libs/gst/base/gstbasesrc.c | 6 +----- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index c09cc20414..eff957acf3 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 179410925e..88720a0a5e 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 179410925e..88720a0a5e 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); -- 2.34.1