pipewiresrc: improve remote connection errors

This commit is contained in:
Wim Taymans 2017-07-18 15:28:14 +02:00
parent a003d1a39f
commit 629f824b91
5 changed files with 27 additions and 24 deletions

View file

@ -895,6 +895,9 @@ gst_pipewire_src_create (GstPushSrc * psrc, GstBuffer ** buffer)
if (pwsrc->flushing)
goto streaming_stopped;
if (pwsrc->stream == NULL)
goto streaming_error;
state = pwsrc->stream->state;
if (state == PW_STREAM_STATE_ERROR)
goto streaming_error;