mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
Patch from: Vincent Genieux
Original commit message from CVS: Patch from: Vincent Genieux * gst/mpegtsparse/mpegtsparse.c: Fix refcount issues, fixes #538560.
This commit is contained in:
parent
2e1ed2dcba
commit
b458dc321b
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
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>
|
2008-06-16 Zaheer Abbas Merali <zaheerabbas at merali dot org>
|
||||||
|
|
||||||
* gst/mpegtsparse/gstmpegdesc.h:
|
* gst/mpegtsparse/gstmpegdesc.h:
|
||||||
|
|
|
@ -710,12 +710,14 @@ mpegts_parse_push (MpegTSParse * parse, MpegTSPacketizerPacket * packet,
|
||||||
guint16 pid;
|
guint16 pid;
|
||||||
GstBuffer *buffer;
|
GstBuffer *buffer;
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
|
GstCaps *caps;
|
||||||
|
|
||||||
pid = packet->pid;
|
pid = packet->pid;
|
||||||
buffer = packet->buffer;
|
buffer = packet->buffer;
|
||||||
/* we have the same caps on all the src pads */
|
/* we have the same caps on all the src pads */
|
||||||
gst_buffer_set_caps (buffer,
|
caps = gst_static_pad_template_get_caps (&src_template);
|
||||||
gst_static_pad_template_get_caps (&src_template));
|
gst_buffer_set_caps (buffer, caps);
|
||||||
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
GST_OBJECT_LOCK (parse);
|
GST_OBJECT_LOCK (parse);
|
||||||
/* clear tspad->pushed on pads */
|
/* clear tspad->pushed on pads */
|
||||||
|
|
Loading…
Reference in a new issue