From e5809ee052b93b6b74633dbcf532c79e84029790 Mon Sep 17 00:00:00 2001 From: Robert Rosengren Date: Mon, 16 Mar 2026 12:53:39 +0100 Subject: [PATCH] pipewiresrc: fix wait_negotiated from change_state Going from PLAYING to PAUSED will have basesrc calling unlock and setting flushing to false. Going back to PLAYING may then fail in wait_negotiated, as unlock_stop will be called after change_state. Fix by remove the flushing check, since already in that "state". --- src/gst/gstpipewiresrc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gst/gstpipewiresrc.c b/src/gst/gstpipewiresrc.c index 57cb355a7..3c57028b4 100644 --- a/src/gst/gstpipewiresrc.c +++ b/src/gst/gstpipewiresrc.c @@ -1085,10 +1085,6 @@ wait_negotiated (GstPipeWireSrc *this) GST_DEBUG_OBJECT (this, "waiting for NEGOTIATED, now %s", pw_stream_state_as_string (state)); if (state == PW_STREAM_STATE_ERROR) break; - if (this->flushing) { - state = PW_STREAM_STATE_ERROR; - break; - } if (this->negotiated) break;