From 51294af4c6a1366d2304bebba91722b7ba85d0d4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 20 Jul 2024 13:14:59 +0200 Subject: Fix portal being displayed as not supported --- src/main.cpp | 2 +- src/pipewire.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 0a7c32e..39bc64c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1676,7 +1676,7 @@ static void list_supported_capture_options(gsr_egl *egl, bool wayland) { return; char *session_handle = NULL; - if(gsr_dbus_screencast_create_session(&dbus, &session_handle)) { + if(gsr_dbus_screencast_create_session(&dbus, &session_handle) == 0) { free(session_handle); puts("portal"); } diff --git a/src/pipewire.c b/src/pipewire.c index 1828f90..1133ab0 100644 --- a/src/pipewire.c +++ b/src/pipewire.c @@ -9,6 +9,8 @@ #include +/* This code is partially based on xr-video-player pipewire implementation which is based on obs-studio's pipewire implementation */ + /* TODO: Make gsr_pipewire_init asynchronous */ /* TODO: Support 10-bit capture (hdr) when pipewire supports it */ /* TODO: Test all of the image formats */ -- cgit v1.2.3