Initialise the PipeWire stream to be in the inactive state.

This commit is contained in:
Mike Brady
2024-08-09 18:51:39 +01:00
parent f6dc04de15
commit 17b134b032
+2 -2
View 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;
}