pulse: handle NULL pw_stream

The pipewire stream might have been destroyed when the pulse stream
is freed.
This commit is contained in:
Wim Taymans 2020-08-04 18:20:20 +02:00
parent 377b3f9d42
commit 9290137931

View file

@ -617,7 +617,8 @@ static void stream_unlink(pa_stream *s)
}
spa_list_remove(&s->link);
pw_stream_set_active(s->stream, false);
if (s->stream)
pw_stream_set_active(s->stream, false);
s->context = NULL;
pa_stream_unref(s);