mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
Only free the pending tunnel if there is one
--
This commit is contained in:
parent
2f8025dbdd
commit
d85b34f1b1
1 changed files with 5 additions and 4 deletions
|
@ -1036,10 +1036,11 @@ closed (GstRTSPWatch *watch, gpointer user_data)
|
|||
|
||||
g_message ("client %p: connection closed", client);
|
||||
|
||||
tunnelid = gst_rtsp_connection_get_tunnelid (client->connection);
|
||||
g_mutex_lock (tunnels_lock);
|
||||
g_hash_table_remove (tunnels, tunnelid);
|
||||
g_mutex_unlock (tunnels_lock);
|
||||
if ((tunnelid = gst_rtsp_connection_get_tunnelid (client->connection))) {
|
||||
g_mutex_lock (tunnels_lock);
|
||||
g_hash_table_remove (tunnels, tunnelid);
|
||||
g_mutex_unlock (tunnels_lock);
|
||||
}
|
||||
|
||||
return GST_RTSP_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue