diff --git a/src/gst/gstpipewiresrc.c b/src/gst/gstpipewiresrc.c index e3b86b373..e473338ba 100644 --- a/src/gst/gstpipewiresrc.c +++ b/src/gst/gstpipewiresrc.c @@ -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; }