diff options
author | Thomas Weißschuh <thomas@t-8ch.de> | 2023-02-01 03:00:40 +0000 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2023-02-03 12:33:09 -0800 |
commit | c29692d81dc593a5db7c766781b4e43060b58d67 (patch) | |
tree | 27f29c69405839f85276e0c3765368b83e6da895 /audio/out | |
parent | 888a7c963f91295074b8178ea5735cba97f3f775 (diff) | |
download | mpv-c29692d81dc593a5db7c766781b4e43060b58d67.tar.bz2 mpv-c29692d81dc593a5db7c766781b4e43060b58d67.tar.xz |
ao_pipewire: move stream flags to dedicated variable
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_pipewire.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c index 3c0122196f..ec7f68bb0e 100644 --- a/audio/out/ao_pipewire.c +++ b/audio/out/ao_pipewire.c @@ -549,13 +549,13 @@ static int init(struct ao *ao) pw_stream_add_listener(p->stream, &p->stream_listener, &stream_events, ao); + enum pw_stream_flags flags = PW_STREAM_FLAG_AUTOCONNECT | + PW_STREAM_FLAG_INACTIVE | + PW_STREAM_FLAG_MAP_BUFFERS | + PW_STREAM_FLAG_RT_PROCESS; + if (pw_stream_connect(p->stream, - PW_DIRECTION_OUTPUT, PW_ID_ANY, - PW_STREAM_FLAG_AUTOCONNECT | - PW_STREAM_FLAG_INACTIVE | - PW_STREAM_FLAG_MAP_BUFFERS | - PW_STREAM_FLAG_RT_PROCESS, - params, 1) < 0) { + PW_DIRECTION_OUTPUT, PW_ID_ANY, flags, params, 1) < 0) { pw_thread_loop_unlock(p->loop); goto error; } |