From: Mark Nauwelaerts Date: Wed, 8 Jul 2009 11:38:53 +0000 (+0200) Subject: rtspsrc: do not leak timeout message X-Git-Tag: 1.19.3~509^2~10124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a905ef233e70b3e95fbc4093845bcb58513a817e;p=platform%2Fupstream%2Fgstreamer.git rtspsrc: do not leak timeout message --- diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index c49eddf..5b0b6c8 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);