]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Initialise the PipeWire stream to be in the inactive state.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Fri, 9 Aug 2024 17:51:39 +0000 (18:51 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Fri, 9 Aug 2024 17:51:39 +0000 (18:51 +0100)
audio_pw.c

index 13ca6e5e0bacfba5922de269a7eda30c9d61a1a0..c2fd132cd44611eb9b29bba97be49600b1c8606c 100644 (file)
@@ -269,9 +269,9 @@ static int init(__attribute__((unused)) int argc, __attribute__((unused)) char *
   // called in a realtime thread.
   pw_stream_connect(data.stream, PW_DIRECTION_OUTPUT, PW_ID_ANY,
                     PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_MAP_BUFFERS |
-                        PW_STREAM_FLAG_RT_PROCESS,
+                        PW_STREAM_FLAG_RT_PROCESS | PW_STREAM_FLAG_INACTIVE,
                     params, 1);
-  stream_is_active = 1;
+  stream_is_active = 0;
   pw_thread_loop_unlock(data.loop);
   return 0;
 }