projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f8025d
)
Only free the pending tunnel if there is one
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 4 Mar 2009 15:33:21 +0000
(16:33 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Wed, 4 Mar 2009 15:33:21 +0000
(16:33 +0100)
--
gst/rtsp-server/rtsp-client.c
patch
|
blob
|
history
diff --git
a/gst/rtsp-server/rtsp-client.c
b/gst/rtsp-server/rtsp-client.c
index
1ba0678
..
585b5d8
100644
(file)
--- a/
gst/rtsp-server/rtsp-client.c
+++ b/
gst/rtsp-server/rtsp-client.c
@@
-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;
}