permissions: add the role to the copy
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 18 Jul 2013 10:26:45 +0000 (12:26 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 18 Jul 2013 10:27:33 +0000 (12:27 +0200)
gst/rtsp-server/rtsp-permissions.c

index 077ae5b..25872c6 100644 (file)
@@ -87,7 +87,7 @@ _gst_rtsp_permissions_copy (GstRTSPPermissionsImpl * permissions)
 
     gst_structure_set_parent_refcount (entry_copy,
         &copy->permissions.mini_object.refcount);
-    g_ptr_array_add (permissions->roles, entry_copy);
+    g_ptr_array_add (copy->roles, entry_copy);
   }
 
   return GST_RTSP_PERMISSIONS (copy);