gst/mpegstream/: Ref events before sending them to multiple pads, after all gst_pad_s...
authorTim-Philipp Müller <tim@centricular.net>
Tue, 29 Nov 2005 11:26:35 +0000 (11:26 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Tue, 29 Nov 2005 11:26:35 +0000 (11:26 +0000)
commitceb53c930c8177c8de99e41ea54e5ad870c7ad03
tree0f01b2d4e46ef0fea6185e53b617dadfd5ec81d8
parent4d652b147a52075b6a6ef611ce0d964d0d32db06
gst/mpegstream/: Ref events before sending them to multiple pads, after all gst_pad_send_event() takes ownership of e...

Original commit message from CVS:
Reviewed by: Tim-Philipp Müller  <tim at centricular dot net>
* gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_send_event):
* gst/mpegstream/gstmpegparse.c: (gst_mpeg_parse_send_newsegment),
(gst_mpeg_parse_send_event):
Ref events before sending them to multiple pads, after all
gst_pad_send_event() takes ownership of events. Don't leak
events that have not been handled (fixes #322745).
ChangeLog
common
gst/mpegstream/gstmpegdemux.c
gst/mpegstream/gstmpegparse.c