aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-17 13:15:38 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-17 13:16:42 +0100
commit62ff6492045a357454e145e936174e273bfd898f (patch)
tree0a60f65eb1a7e324df4e2e2fa1034f7b7c891f16
parent0ee68146a7cfbabdb1aa20355cb1479fe7277bd0 (diff)
--info also verify pipewire connection for app audio
-rw-r--r--src/main.cpp5
-rw-r--r--src/pipewire_audio.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 98215be..55ad7fa 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1902,6 +1902,11 @@ static void list_system_info(bool wayland) {
bool supports_app_audio = false;
#ifdef GSR_APP_AUDIO
supports_app_audio = pulseaudio_server_is_pipewire();
+ gsr_pipewire_audio audio;
+ if(gsr_pipewire_audio_init(&audio))
+ gsr_pipewire_audio_deinit(&audio);
+ else
+ supports_app_audio = false;
#endif
printf("supports_app_audio|%s\n", supports_app_audio ? "yes" : "no");
}
diff --git a/src/pipewire_audio.c b/src/pipewire_audio.c
index 49de50b..4f9f05f 100644
--- a/src/pipewire_audio.c
+++ b/src/pipewire_audio.c
@@ -332,7 +332,7 @@ void gsr_pipewire_audio_deinit(gsr_pipewire_audio *self) {
self->num_requested_links = 0;
#if PW_CHECK_VERSION(0, 3, 49)
- pw_deinit();
+ pw_deinit();
#endif
}