summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2014-07-10 17:10:06 +0200
committerWim Taymans <wtaymans@redhat.com>2014-07-10 17:10:06 +0200
commitecde0051db71d97cf8e1b67a16280644c106806a (patch)
tree3f540fec7e2c90df7e7a5b578b3f16161c621553
parentced406cc28ef448739b6153ea80e79af102aa490 (diff)
server: implement client REMOVE filter
-rw-r--r--gst/rtsp-server/rtsp-server.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gst/rtsp-server/rtsp-server.c b/gst/rtsp-server/rtsp-server.c
index 84a7d50..686ba03 100644
--- a/gst/rtsp-server/rtsp-server.c
+++ b/gst/rtsp-server/rtsp-server.c
@@ -1404,7 +1404,12 @@ restart:
switch (res) {
case GST_RTSP_FILTER_REMOVE:
- /* remove client, FIXME */
+ GST_RTSP_SERVER_UNLOCK (server);
+
+ gst_rtsp_client_close (client);
+
+ GST_RTSP_SERVER_LOCK (server);
+ changed |= (cookie != priv->clients_cookie);
break;
case GST_RTSP_FILTER_REF:
result = g_list_prepend (result, g_object_ref (client));