aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-08 23:24:36 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-08 23:24:36 +0100
commit10dd7f1c6406ba7c962a97bfbe38a229a6ab55ce (patch)
treec0027fb5c0c03f9ed768b741e78174558e0eddaa /src
parentfc45439b31374bd2c5883332462fbf052c8f0826 (diff)
Yeet the unecessary properties error location code, it fails to build on some versions of spa
Diffstat (limited to 'src')
-rw-r--r--src/pipewire_audio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pipewire_audio.c b/src/pipewire_audio.c
index 1991966..2b2d4e6 100644
--- a/src/pipewire_audio.c
+++ b/src/pipewire_audio.c
@@ -1,7 +1,6 @@
#include "../include/pipewire_audio.h"
#include <pipewire/pipewire.h>
-#include <spa/utils/defs.h>
static void on_core_info_cb(void *user_data, const struct pw_core_info *info) {
gsr_pipewire_audio *self = user_data;
@@ -371,12 +370,11 @@ void gsr_pipewire_audio_deinit(gsr_pipewire_audio *self) {
}
static struct pw_properties* gsr_pipewire_create_null_audio_sink(const char *name) {
- struct spa_error_location err_loc;
char props_str[512];
snprintf(props_str, sizeof(props_str), "{ factory.name=support.null-audio-sink node.name=\"%s\" media.class=Audio/Sink object.linger=false audio.position=[FL FR] monitor.channel-volumes=true monitor.passthrough=true adjust_time=0 slaves=\"\" }", name);
- struct pw_properties *props = pw_properties_new_string_checked(props_str, strlen(props_str), &err_loc);
+ struct pw_properties *props = pw_properties_new_string_checked(props_str, strlen(props_str), NULL);
if(!props) {
- fprintf(stderr, "gsr error: gsr_pipewire_create_null_audio_sink: failed to create virtual sink properties, error: %d:%d: %s\n", err_loc.line, err_loc.col, err_loc.reason);
+ fprintf(stderr, "gsr error: gsr_pipewire_create_null_audio_sink: failed to create virtual sink properties\n");
return NULL;
}
return props;