Merge branch 'djrscally/pipewiresrc' into 'master'

gstpipewiresrc: Add a wait_negotiated() call to create()

See merge request pipewire/pipewire!2872
This commit is contained in:
Daniel Scally 2026-07-01 09:21:34 +00:00
commit cc6f1b3c74

View file

@ -1574,8 +1574,10 @@ gst_pipewire_src_create (GstPushSrc * psrc, GstBuffer ** buffer)
pwsrc = GST_PIPEWIRE_SRC (psrc); pwsrc = GST_PIPEWIRE_SRC (psrc);
pw_thread_loop_lock (pwsrc->stream->core->loop); pw_thread_loop_lock (pwsrc->stream->core->loop);
if (!pwsrc->negotiated) if (!pwsrc->negotiated) {
goto not_negotiated; if (wait_negotiated(pwsrc) == PW_STREAM_STATE_ERROR)
goto not_negotiated;
}
while (TRUE) { while (TRUE) {
enum pw_stream_state state; enum pw_stream_state state;