From ecde0051db71d97cf8e1b67a16280644c106806a Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 10 Jul 2014 17:10:06 +0200 Subject: [PATCH] server: implement client REMOVE filter --- gst/rtsp-server/rtsp-server.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gst/rtsp-server/rtsp-server.c b/gst/rtsp-server/rtsp-server.c index 84a7d50174..686ba03121 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));