From 8cf2f134b7a0049b6e27f4b94d992a97a90d5080 Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Fri, 18 Jun 2021 13:34:35 +0300 Subject: [PATCH] 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 --- src/gst/gstpipewiresink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gst/gstpipewiresink.c b/src/gst/gstpipewiresink.c index 8870d0dca..42d0e42a6 100644 --- a/src/gst/gstpipewiresink.c +++ b/src/gst/gstpipewiresink.c @@ -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)