1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 17:12:36 +00:00

ao_pipewire: compatibility for libpipewire 0.3.19

This commit is contained in:
Thomas Weißschuh 2022-10-26 15:45:53 +02:00 committed by Jan Ekström
parent 8b81f45e1b
commit c9af75e888
3 changed files with 8 additions and 2 deletions

View File

@ -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);

View File

@ -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

View File

@ -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',