mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 15:04:46 +00:00
rtspsrc: do not leak timeout message
This commit is contained in:
parent
63115fe72c
commit
a905ef233e
1 changed files with 3 additions and 3 deletions
|
@ -5169,10 +5169,10 @@ gst_rtspsrc_handle_message (GstBin * bin, GstMessage * message)
|
||||||
|
|
||||||
/* we only act on the first udp timeout message, others are irrelevant
|
/* we only act on the first udp timeout message, others are irrelevant
|
||||||
* and can be ignored. */
|
* and can be ignored. */
|
||||||
if (ignore_timeout)
|
if (!ignore_timeout)
|
||||||
gst_message_unref (message);
|
|
||||||
else
|
|
||||||
gst_rtspsrc_loop_send_cmd (rtspsrc, CMD_RECONNECT, TRUE);
|
gst_rtspsrc_loop_send_cmd (rtspsrc, CMD_RECONNECT, TRUE);
|
||||||
|
/* eat and free */
|
||||||
|
gst_message_unref (message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
GST_BIN_CLASS (parent_class)->handle_message (bin, message);
|
GST_BIN_CLASS (parent_class)->handle_message (bin, message);
|
||||||
|
|
Loading…
Reference in a new issue