mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
pulse: handle NULL pw_stream
The pipewire stream might have been destroyed when the pulse stream is freed.
This commit is contained in:
parent
377b3f9d42
commit
9290137931
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue