mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-07-05 00:06:16 -04:00
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:
commit
cc6f1b3c74
1 changed files with 4 additions and 2 deletions
|
|
@ -1574,8 +1574,10 @@ gst_pipewire_src_create (GstPushSrc * psrc, GstBuffer ** buffer)
|
|||
pwsrc = GST_PIPEWIRE_SRC (psrc);
|
||||
|
||||
pw_thread_loop_lock (pwsrc->stream->core->loop);
|
||||
if (!pwsrc->negotiated)
|
||||
goto not_negotiated;
|
||||
if (!pwsrc->negotiated) {
|
||||
if (wait_negotiated(pwsrc) == PW_STREAM_STATE_ERROR)
|
||||
goto not_negotiated;
|
||||
}
|
||||
|
||||
while (TRUE) {
|
||||
enum pw_stream_state state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue