mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
gst/rtpmanager/gstrtpsession.c: Fix event leak.
Original commit message from CVS: * gst/rtpmanager/gstrtpsession.c: (gst_rtp_session_event_send_rtcp_src): Fix event leak.
This commit is contained in:
parent
15afef8652
commit
67360318b4
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-11-25 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* gst/rtpmanager/gstrtpsession.c:
|
||||
(gst_rtp_session_event_send_rtcp_src):
|
||||
Fix event leak.
|
||||
|
||||
2008-11-25 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||
|
||||
* gst/mxf/mxfmpeg.c: (mxf_mpeg_video_create_caps):
|
||||
|
|
|
@ -1373,6 +1373,7 @@ gst_rtp_session_event_recv_rtp_sink (GstPad * pad, GstEvent * event)
|
|||
return ret;
|
||||
|
||||
}
|
||||
|
||||
static GList *
|
||||
gst_rtp_session_internal_links (GstPad * pad)
|
||||
{
|
||||
|
@ -1551,7 +1552,7 @@ gst_rtp_session_event_send_rtcp_src (GstPad * pad, GstEvent * event)
|
|||
{
|
||||
GstRtpSession *rtpsession;
|
||||
GstRtpSessionPrivate *priv;
|
||||
gboolean ret = FALSE;
|
||||
gboolean ret;
|
||||
|
||||
rtpsession = GST_RTP_SESSION (gst_pad_get_parent (pad));
|
||||
priv = rtpsession->priv;
|
||||
|
@ -1560,10 +1561,13 @@ gst_rtp_session_event_send_rtcp_src (GstPad * pad, GstEvent * event)
|
|||
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_LATENCY:
|
||||
gst_event_unref (event);
|
||||
ret = TRUE;
|
||||
break;
|
||||
default:
|
||||
/* other events simply fail for now */
|
||||
gst_event_unref (event);
|
||||
ret = FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue