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.
This commit is contained in:
Wim Taymans 2020-10-05 10:12:37 +02:00
parent 7ee166f4c6
commit b05597cf6b

View file

@ -1569,8 +1569,8 @@ pw_stream_connect(struct pw_stream *stream,
pw_properties_free(props); pw_properties_free(props);
props = NULL; props = NULL;
} }
if (!SPA_FLAG_IS_SET(impl->flags, PW_STREAM_FLAG_INACTIVE)) pw_impl_node_set_active(impl->node,
pw_impl_node_set_active(impl->node, true); !SPA_FLAG_IS_SET(impl->flags, PW_STREAM_FLAG_INACTIVE));
pw_log_debug(NAME" %p: export node %p", stream, impl->node); pw_log_debug(NAME" %p: export node %p", stream, impl->node);
stream->proxy = pw_core_export(stream->core, stream->proxy = pw_core_export(stream->core,