diff options
author | llyyr <llyyr.public@gmail.com> | 2025-02-19 19:08:36 +0530 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2025-02-20 15:49:01 +0000 |
commit | c9970b5ba66e25aeab36cdbdb91b973f2d3f8d90 (patch) | |
tree | 92be8d060cea0f118bb7a1ff23553fd74e6c147f | |
parent | 9618aa3b21055669f96d5d821de5b61d4b9cbe00 (diff) | |
download | mpv-c9970b5ba66e25aeab36cdbdb91b973f2d3f8d90.tar.bz2 mpv-c9970b5ba66e25aeab36cdbdb91b973f2d3f8d90.tar.xz |
ao_pipewire: don't load client-rt.conf properties
Deprecated in https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/24bcacc6195ffbf8e40c9ea1374eb6666252eadc
Fixes: #15914
-rw-r--r-- | audio/out/ao_pipewire.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c index 5e6bb1fa4f..88c48ddca6 100644 --- a/audio/out/ao_pipewire.c +++ b/audio/out/ao_pipewire.c @@ -510,10 +510,11 @@ static int pipewire_init_boilerplate(struct ao *ao) if (pw_thread_loop_start(p->loop) < 0) goto error; - context = pw_context_new( - pw_thread_loop_get_loop(p->loop), - pw_properties_new(PW_KEY_CONFIG_NAME, "client-rt.conf", NULL), - 0); + struct pw_properties *props = NULL; +#if !PW_CHECK_VERSION(1, 3, 81) + props = pw_properties_new(PW_KEY_CONFIG_NAME, "client-rt.conf", NULL); +#endif + context = pw_context_new(pw_thread_loop_get_loop(p->loop), props, 0); if (!context) goto error; |