From b05597cf6b9bd5170ef1d1e28ae8e3fe8d99a981 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 5 Oct 2020 10:12:37 +0200 Subject: [PATCH] stream: make sure stream is in the right state An adapter stream is usually created in the active state so deactive it before export when requested. --- src/pipewire/stream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index 077ed2cb9..b1b530035 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -1569,8 +1569,8 @@ pw_stream_connect(struct pw_stream *stream, pw_properties_free(props); props = NULL; } - if (!SPA_FLAG_IS_SET(impl->flags, PW_STREAM_FLAG_INACTIVE)) - pw_impl_node_set_active(impl->node, true); + pw_impl_node_set_active(impl->node, + !SPA_FLAG_IS_SET(impl->flags, PW_STREAM_FLAG_INACTIVE)); pw_log_debug(NAME" %p: export node %p", stream, impl->node); stream->proxy = pw_core_export(stream->core,