diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-08-04 18:20:20 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-08-04 18:20:20 +0200 |
commit | 9290137931edbc40d073cdd8be5752e088f5fd58 (patch) | |
tree | e3ec804455b1f2c053d9776cb2d5208230c6d194 /pipewire-pulseaudio | |
parent | 377b3f9d425c7a33c14fe1d8e43379d08d9eaef1 (diff) |
pulse: handle NULL pw_stream
The pipewire stream might have been destroyed when the pulse stream
is freed.
Diffstat (limited to 'pipewire-pulseaudio')
-rw-r--r-- | pipewire-pulseaudio/src/stream.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pipewire-pulseaudio/src/stream.c b/pipewire-pulseaudio/src/stream.c index ebbb5be6..ca719ac0 100644 --- a/pipewire-pulseaudio/src/stream.c +++ b/pipewire-pulseaudio/src/stream.c @@ -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); |