From b458dc321b2b4c4f87a351324705bf7fa1327483 Mon Sep 17 00:00:00 2001 From: Zaheer Abbas Merali Date: Mon, 16 Jun 2008 11:29:46 +0000 Subject: Patch from: Vincent Genieux Original commit message from CVS: Patch from: Vincent Genieux * gst/mpegtsparse/mpegtsparse.c: Fix refcount issues, fixes #538560. --- ChangeLog | 7 +++++++ gst/mpegtsparse/mpegtsparse.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1981971a..3679e3a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-06-16 Zaheer Abbas Merali + + Patch from: Vincent Genieux + + * gst/mpegtsparse/mpegtsparse.c: + Fix refcount issues, fixes #538560. + 2008-06-16 Zaheer Abbas Merali * gst/mpegtsparse/gstmpegdesc.h: diff --git a/gst/mpegtsparse/mpegtsparse.c b/gst/mpegtsparse/mpegtsparse.c index ba1fa887..4bed1331 100644 --- a/gst/mpegtsparse/mpegtsparse.c +++ b/gst/mpegtsparse/mpegtsparse.c @@ -710,12 +710,14 @@ mpegts_parse_push (MpegTSParse * parse, MpegTSPacketizerPacket * packet, 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 */ -- cgit v1.2.1