mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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
This commit is contained in:
parent
a870af02f0
commit
8cf2f134b7
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue