mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-07-02 00:06:09 -04:00
pipewiresrc: unlock loop when failing to wait negotiated
This commit is contained in:
parent
acbcf5cece
commit
9b2ff82aea
1 changed files with 4 additions and 1 deletions
|
|
@ -1786,8 +1786,11 @@ gst_pipewire_src_change_state (GstElement * element, GstStateChange transition)
|
||||||
* be moved from idle to suspended, which would mean format cleared via
|
* be moved from idle to suspended, which would mean format cleared via
|
||||||
* handle_format_change. Wait for new format to avoid basesrc calling
|
* handle_format_change. Wait for new format to avoid basesrc calling
|
||||||
* create() and get not-negotiated error as response. */
|
* create() and get not-negotiated error as response. */
|
||||||
if (wait_negotiated(this) == PW_STREAM_STATE_ERROR)
|
if (wait_negotiated(this) == PW_STREAM_STATE_ERROR) {
|
||||||
|
pw_thread_loop_unlock (this->stream->core->loop);
|
||||||
goto open_failed;
|
goto open_failed;
|
||||||
|
}
|
||||||
|
|
||||||
pw_thread_loop_unlock (this->stream->core->loop);
|
pw_thread_loop_unlock (this->stream->core->loop);
|
||||||
break;
|
break;
|
||||||
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
|
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue