diff --git a/src/gst/gstpipewiresrc.c b/src/gst/gstpipewiresrc.c index e473338ba..e3b86b373 100644 --- a/src/gst/gstpipewiresrc.c +++ b/src/gst/gstpipewiresrc.c @@ -783,10 +783,9 @@ 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) - break; - - if (this->flushing) { + if (state == PW_STREAM_STATE_ERROR || + state == PW_STREAM_STATE_UNCONNECTED || + this->flushing) { state = PW_STREAM_STATE_ERROR; break; }