mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +00:00
ao_pipewire: compatibility for libpipewire 0.3.19
This commit is contained in:
parent
8b81f45e1b
commit
c9af75e888
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user