Revert "gstpipewiresrc: break out of wait_started() also on STATE_UNCONNECTED"

This reverts commit 7465175ad0.

wait_started() is called before the stream is connecting and so
exits with an error immediately, which then makes the stream start
too early and block.
This commit is contained in:
Wim Taymans 2023-11-16 09:49:34 +01:00
parent 0ecc7ca5f5
commit aef99f840f

View file

@ -783,9 +783,10 @@ wait_started (GstPipeWireSrc *this)
GST_DEBUG_OBJECT (this, "waiting for started signal, state now %s",
pw_stream_state_as_string (state));
if (state == PW_STREAM_STATE_ERROR ||
state == PW_STREAM_STATE_UNCONNECTED ||
this->flushing) {
if (state == PW_STREAM_STATE_ERROR)
break;
if (this->flushing) {
state = PW_STREAM_STATE_ERROR;
break;
}