Fix gst_rtsp_server_client_filter, using wrong variable type
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Fri, 16 Aug 2013 16:42:22 +0000 (12:42 -0400)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 23 Aug 2013 08:29:21 +0000 (10:29 +0200)
gst/rtsp-server/rtsp-server.c

index 0e18fab..efc711b 100644 (file)
@@ -1342,16 +1342,16 @@ gst_rtsp_server_client_filter (GstRTSPServer * server,
 
   GST_RTSP_SERVER_LOCK (server);
   for (walk = priv->clients; walk; walk = next) {
-    GstRTSPClient *client = walk->data;
+    ClientContext *cctx = walk->data;
 
     next = g_list_next (walk);
 
-    switch (func (server, client, user_data)) {
+    switch (func (server, cctx->client, user_data)) {
       case GST_RTSP_FILTER_REMOVE:
         /* remove client, FIXME */
         break;
       case GST_RTSP_FILTER_REF:
-        result = g_list_prepend (result, g_object_ref (client));
+        result = g_list_prepend (result, g_object_ref (cctx->client));
         break;
       case GST_RTSP_FILTER_KEEP:
       default: