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".
This commit is contained in:
Robert Rosengren 2026-03-16 12:53:39 +01:00 committed by Wim Taymans
parent 1a37f445a2
commit e5809ee052

View file

@ -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;