server: implement client REMOVE filter

This commit is contained in:
Wim Taymans 2014-07-10 17:10:06 +02:00
parent ced406cc28
commit ecde0051db

View file

@ -1404,7 +1404,12 @@ restart:
switch (res) { switch (res) {
case GST_RTSP_FILTER_REMOVE: 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; break;
case GST_RTSP_FILTER_REF: case GST_RTSP_FILTER_REF:
result = g_list_prepend (result, g_object_ref (client)); result = g_list_prepend (result, g_object_ref (client));