server: implement client REMOVE filter
authorWim Taymans <wtaymans@redhat.com>
Thu, 10 Jul 2014 15:10:06 +0000 (17:10 +0200)
committerWim Taymans <wtaymans@redhat.com>
Thu, 10 Jul 2014 15:10:06 +0000 (17:10 +0200)
gst/rtsp-server/rtsp-server.c

index 84a7d50..686ba03 100644 (file)
@@ -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));