[xdg-desktop-portal-gnome] screencast: Fix variant type check
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [xdg-desktop-portal-gnome] screencast: Fix variant type check
- Date: Thu, 25 Nov 2021 13:27:51 +0000 (UTC)
commit df8ddc91a6ab1254b22de8f092f07ce9aca4ea3c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Nov 25 10:27:07 2021 -0300
screencast: Fix variant type check
The restore data type is not the (suv) variant, but rather the
GNOME-specific variant format.
src/screencast.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/screencast.c b/src/screencast.c
index ecfa866..3918f31 100644
--- a/src/screencast.c
+++ b/src/screencast.c
@@ -719,7 +719,7 @@ handle_select_sources (XdpImplScreenCast *object,
if (g_variant_lookup (arg_options, "restore_data", "(suv)", &provider, &version, &restore_data))
{
- if (!g_variant_check_format_string (restore_data, "(suv)", FALSE))
+ if (!g_variant_check_format_string (restore_data, RESTORE_VARIANT_TYPE, FALSE))
{
g_warning ("Cannot parse restore data, ignoring");
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]