diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2022-10-26 15:45:53 +0200 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2022-10-26 21:56:33 +0300 |
commit | c9af75e888c8ad7b534a03631bc4a76a2f59603c (patch) | |
tree | dbc184f8d2eabad930fe98cdb5aa86c76ae7df10 /audio/out | |
parent | 8b81f45e1ba98ed8f1fd85b80c3cca06523f2b4d (diff) | |
download | mpv-c9af75e888c8ad7b534a03631bc4a76a2f59603c.tar.bz2 mpv-c9af75e888c8ad7b534a03631bc4a76a2f59603c.tar.xz |
ao_pipewire: compatibility for libpipewire 0.3.19
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_pipewire.c | 6 |
1 files changed, 6 insertions, 0 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); |