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.
This commit is contained in:
Tim-Philipp Müller 2005-07-16 12:33:13 +00:00
parent 1ac0654d11
commit d34751b8c2
3 changed files with 8 additions and 10 deletions

View file

@ -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

View 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);

View 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);