gstpipewiresink: also break the connection loop when the state is STREAMING

Under some schedulers (observed in a virtualbox VM), the state may
go from PAUSED to STREAMING before this code has a chance to test it
This commit is contained in:
George Kiagiadakis 2021-06-18 13:34:35 +03:00
parent a870af02f0
commit 8cf2f134b7

View file

@ -539,7 +539,7 @@ gst_pipewire_sink_setcaps (GstBaseSink * bsink, GstCaps * caps)
while (TRUE) {
state = pw_stream_get_state (pwsink->stream, &error);
if (state == PW_STREAM_STATE_PAUSED)
if (state >= PW_STREAM_STATE_PAUSED)
break;
if (state == PW_STREAM_STATE_ERROR)