gst: don't stop streaming when paused

We pause when we are unlinked, don't stop the streaming thread because
then we won't be able to resume when we are linked again.

Fixes #3620
This commit is contained in:
Wim Taymans 2023-11-02 09:58:37 +01:00
parent b8a8e00a80
commit bdb7f3adc8

View file

@ -1188,7 +1188,7 @@ gst_pipewire_src_create (GstPushSrc * psrc, GstBuffer ** buffer)
if (state == PW_STREAM_STATE_ERROR)
goto streaming_error;
if (state != PW_STREAM_STATE_STREAMING)
if (state == PW_STREAM_STATE_UNCONNECTED)
goto streaming_stopped;
if ((caps = pwsrc->caps) != NULL) {