Deprecated in https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/24bcacc6195ffbf8e40c9ea1374eb6666252eadc
Unified · Split
| @@ -510,10 +510,11 @@ static int pipewire_init_boilerplate(struct ao *ao) · 509 unmodified lines | ||
| 510 | 510 | if (pw_thread_loop_start(p->loop) < 0) |
| 511 | 511 | goto error; |
| 512 | 512 | |
| 513 | − context = pw_context_new( | |
| 514 | − pw_thread_loop_get_loop(p->loop), | |
| 515 | − pw_properties_new(PW_KEY_CONFIG_NAME, "client-rt.conf", NULL), | |
| 516 | − 0); | |
| 513 | + struct pw_properties *props = NULL; | |
| 514 | +#if !PW_CHECK_VERSION(1, 3, 81) | |
| 515 | + props = pw_properties_new(PW_KEY_CONFIG_NAME, "client-rt.conf", NULL); | |
| 516 | +#endif | |
| 517 | + context = pw_context_new(pw_thread_loop_get_loop(p->loop), props, 0); | |
| 517 | 518 | if (!context) |
| 518 | 519 | goto error; |
| 519 | 520 | |