diff options
-rw-r--r-- | src/main.cpp | 5 | ||||
-rw-r--r-- | src/pipewire_audio.c | 2 |
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 } |