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 | if (pw_thread_loop_start(p->loop) < 0) | 510 | if (pw_thread_loop_start(p->loop) < 0) |
| 511 | goto error; | 511 | goto error; |
| 512 | 512 | ||
| 513 | context = pw_context_new( | 513 | struct pw_properties *props = NULL; |
| 514 | pw_thread_loop_get_loop(p->loop), | 514 | #if !PW_CHECK_VERSION(1, 3, 81) |
| 515 | pw_properties_new(PW_KEY_CONFIG_NAME, "client-rt.conf", NULL), | 515 | props = pw_properties_new(PW_KEY_CONFIG_NAME, "client-rt.conf", NULL); |
| 516 | 0); | 516 | #endif |
| 517 | context = pw_context_new(pw_thread_loop_get_loop(p->loop), props, 0); | ||
| 517 | if (!context) | 518 | if (!context) |
| 518 | goto error; | 519 | goto error; |
| 519 | 520 | ||