Original commit message from CVS:
Patch from: Vincent Genieux
* gst/mpegtsparse/mpegtsparse.c:
Fix refcount issues, fixes #538560.
+2008-06-16 Zaheer Abbas Merali <zaheerabbas at merali dot org>
+
+ Patch from: Vincent Genieux
+
+ * gst/mpegtsparse/mpegtsparse.c:
+ Fix refcount issues, fixes #538560.
+
2008-06-16 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* gst/mpegtsparse/gstmpegdesc.h:
guint16 pid;
GstBuffer *buffer;
GstFlowReturn ret;
+ GstCaps *caps;
pid = packet->pid;
buffer = packet->buffer;
/* we have the same caps on all the src pads */
- gst_buffer_set_caps (buffer,
- gst_static_pad_template_get_caps (&src_template));
+ caps = gst_static_pad_template_get_caps (&src_template);
+ gst_buffer_set_caps (buffer, caps);
+ gst_caps_unref (caps);
GST_OBJECT_LOCK (parse);
/* clear tspad->pushed on pads */