diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2023-02-01 03:03:25 +0000 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2023-02-03 12:33:09 -0800 |
commit | 83681de3c10ef15f96f21e4ae541eedd56bd620b (patch) | |
tree | cbc0ea981b9decc0e7ba5b48a247025fa121d9da /audio/out | |
parent | c29692d81dc593a5db7c766781b4e43060b58d67 (diff) | |
download | mpv-83681de3c10ef15f96f21e4ae541eedd56bd620b.tar.bz2 mpv-83681de3c10ef15f96f21e4ae541eedd56bd620b.tar.xz |
ao_pipewire: add support for exclusive mode
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_pipewire.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c index ec7f68bb0e..d8ad7148ee 100644 --- a/audio/out/ao_pipewire.c +++ b/audio/out/ao_pipewire.c @@ -554,6 +554,9 @@ static int init(struct ao *ao) PW_STREAM_FLAG_MAP_BUFFERS | PW_STREAM_FLAG_RT_PROCESS; + if (ao->init_flags & AO_INIT_EXCLUSIVE) + flags |= PW_STREAM_FLAG_EXCLUSIVE; + if (pw_stream_connect(p->stream, PW_DIRECTION_OUTPUT, PW_ID_ANY, flags, params, 1) < 0) { pw_thread_loop_unlock(p->loop); |