mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
ao_pipewire: use realtime scheduling for data thread
By making the data thread realtime it is able to serve requests faster and more reliable reducing crackling in certain situations. As the mpv callbacks that are running on the data thread are all non-blocking and very short this should be safe. The same mechanism is also used by pw-cat and the alsa plugin shipped by pipewire.
This commit is contained in:
parent
291e05ec1a
commit
c0ca5f1a37
@ -487,7 +487,10 @@ 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), NULL, 0);
|
||||
context = pw_context_new(
|
||||
pw_thread_loop_get_loop(p->loop),
|
||||
pw_properties_new(PW_KEY_CONFIG_NAME, "client-rt.conf", NULL),
|
||||
0);
|
||||
if (!context)
|
||||
goto error;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user