From c9af75e888c8ad7b534a03631bc4a76a2f59603c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 26 Oct 2022 15:45:53 +0200 Subject: [PATCH] ao_pipewire: compatibility for libpipewire 0.3.19 --- audio/out/ao_pipewire.c | 6 ++++++ meson.build | 2 +- wscript | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c index 6628cd4b48..8197858d51 100644 --- a/audio/out/ao_pipewire.c +++ b/audio/out/ao_pipewire.c @@ -42,6 +42,12 @@ #define PW_KEY_NODE_RATE "node.rate" #endif +// Added in Pipewire 0.3.44 +// remove the fallback when we require a newer version +#ifndef PW_KEY_TARGET_OBJECT +#define PW_KEY_TARGET_OBJECT "target.object" +#endif + #if !PW_CHECK_VERSION(0, 3, 50) static inline int pw_stream_get_time_n(struct pw_stream *stream, struct pw_time *time, size_t size) { return pw_stream_get_time(stream, time); diff --git a/meson.build b/meson.build index 629e374a66..6d85b4e3cb 100644 --- a/meson.build +++ b/meson.build @@ -831,7 +831,7 @@ if features['oss-audio'] sources += files('audio/out/ao_oss.c') endif -pipewire = dependency('libpipewire-0.3', version: '>= 0.3', required: get_option('pipewire')) +pipewire = dependency('libpipewire-0.3', version: '>= 0.3.19', required: get_option('pipewire')) features += {'pipewire': pipewire.found()} if features['pipewire'] dependencies += pipewire diff --git a/wscript b/wscript index 22abd31314..028b3f28ec 100644 --- a/wscript +++ b/wscript @@ -446,7 +446,7 @@ audio_output_features = [ }, { 'name': '--pipewire', 'desc': 'PipeWire audio output', - 'func': check_pkg_config('libpipewire-0.3', '>= 0.3.0') + 'func': check_pkg_config('libpipewire-0.3', '>= 0.3.19') }, { 'name': '--sndio', 'desc': 'sndio audio input/output',