mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
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:
parent
7ee166f4c6
commit
b05597cf6b
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue