diff options
author | Zaheer Abbas Merali <zaheerabbas@merali.org> | 2008-06-16 11:29:46 +0000 |
---|---|---|
committer | Zaheer Abbas Merali <zaheerabbas@merali.org> | 2008-06-16 11:29:46 +0000 |
commit | b458dc321b2b4c4f87a351324705bf7fa1327483 (patch) | |
tree | c349289a5649e78b05b9529d9e39e1b96c9cbd92 | |
parent | 2e1ed2dcba463cc803f3b3cca272cb35215ce5d8 (diff) | |
download | gst-plugins-bad-b458dc321b2b4c4f87a351324705bf7fa1327483.tar.gz gst-plugins-bad-b458dc321b2b4c4f87a351324705bf7fa1327483.tar.bz2 gst-plugins-bad-b458dc321b2b4c4f87a351324705bf7fa1327483.zip |
Patch from: Vincent Genieux
Original commit message from CVS:
Patch from: Vincent Genieux
* gst/mpegtsparse/mpegtsparse.c:
Fix refcount issues, fixes #538560.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | gst/mpegtsparse/mpegtsparse.c | 6 |
2 files changed, 11 insertions, 2 deletions
@@ -1,5 +1,12 @@ 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: * gst/mpegtsparse/mpegtspacketizer.c: Parse the extended event descriptor. 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 */ |