diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2008-11-25 15:12:06 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-11-25 15:12:06 +0000 |
commit | 67360318b410047a280b86c0f589347b61ffa48d (patch) | |
tree | 1733ed513f42acebc48d4055d4b601ba84f607fc /gst | |
parent | 15afef86524b53f2c2d5f8f5966418e4ef8368d0 (diff) | |
download | gst-plugins-bad-67360318b410047a280b86c0f589347b61ffa48d.tar.gz gst-plugins-bad-67360318b410047a280b86c0f589347b61ffa48d.tar.bz2 gst-plugins-bad-67360318b410047a280b86c0f589347b61ffa48d.zip |
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.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/rtpmanager/gstrtpsession.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index c8dfdd18..1c223183 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -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; } |