[neon/backports-focal/xdg-desktop-portal/Neon/unstable] src: screen-cast: fix array element size for permissions

Wim Taymans null at kde.org
Wed Jan 13 06:32:43 GMT 2021


Git commit 0b19cc3fcf9a39c65d523704bc23a6907554c406 by Wim Taymans.
Committed on 17/07/2020 at 10:31.
Pushed by ash into branch 'Neon/unstable'.

screen-cast: fix array element size for permissions

The array should contain struct pw_permission elements.

M  +1    -1    src/screen-cast.c

https://invent.kde.org/neon/backports-focal/xdg-desktop-portal/commit/0b19cc3fcf9a39c65d523704bc23a6907554c406

diff --git a/src/screen-cast.c b/src/screen-cast.c
index 1f036b6..235cbd1 100644
--- a/src/screen-cast.c
+++ b/src/screen-cast.c
@@ -554,7 +554,7 @@ open_pipewire_screen_cast_remote (const char *app_id,
   if (!remote)
     return FALSE;
 
-  permission_items = g_array_new (FALSE, TRUE, sizeof (struct spa_dict_item));
+  permission_items = g_array_new (FALSE, TRUE, sizeof (struct pw_permission));
 
   /*
    * PipeWire:Interface:Core



More information about the Neon-commits mailing list