mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
module-portal: Handle no app_id being set
Avoid crashing if the portal would for whatever reason fail to set this.
This commit is contained in:
parent
55eadd6c4c
commit
323917ab4b
1 changed files with 2 additions and 1 deletions
|
|
@ -680,7 +680,8 @@ static DBusHandlerResult permission_store_changed_handler(DBusConnection *connec
|
|||
if (cinfo->is_portal)
|
||||
continue;
|
||||
|
||||
if (strcmp(cinfo->app_id, app_id) != 0)
|
||||
if (cinfo->app_id == NULL ||
|
||||
strcmp(cinfo->app_id, app_id) != 0)
|
||||
continue;
|
||||
|
||||
if (!(cinfo->media_roles & MEDIA_ROLE_CAMERA))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue