diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2009-07-08 13:38:53 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2009-07-09 11:34:40 +0200 |
commit | a905ef233e70b3e95fbc4093845bcb58513a817e (patch) | |
tree | 864b732821af8a772fcb958022038017aac08d4d /gst/rtsp/gstrtspsrc.c | |
parent | 63115fe72cd58c43490bcda9ad9b9a287f81f5e1 (diff) |
rtspsrc: do not leak timeout message
Diffstat (limited to 'gst/rtsp/gstrtspsrc.c')
-rw-r--r-- | gst/rtsp/gstrtspsrc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index c49eddf9..5b0b6c8e 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -5169,10 +5169,10 @@ gst_rtspsrc_handle_message (GstBin * bin, GstMessage * message) /* we only act on the first udp timeout message, others are irrelevant * and can be ignored. */ - if (ignore_timeout) - gst_message_unref (message); - else + if (!ignore_timeout) gst_rtspsrc_loop_send_cmd (rtspsrc, CMD_RECONNECT, TRUE); + /* eat and free */ + gst_message_unref (message); return; } GST_BIN_CLASS (parent_class)->handle_message (bin, message); |