diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-20 13:14:59 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-20 13:14:59 +0200 |
commit | 51294af4c6a1366d2304bebba91722b7ba85d0d4 (patch) | |
tree | 5bf1ca93dd5f043bc887b9a9039dcf92652f2381 /src | |
parent | b2728e083105269af52c6f4c13b32d31933e52d1 (diff) |
Fix portal being displayed as not supported
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 | ||||
-rw-r--r-- | src/pipewire.c | 2 |
2 files changed, 3 insertions, 1 deletions
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 <fcntl.h> +/* 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 */ |