summaryrefslogtreecommitdiff
path: root/pipewire-pulseaudio
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-08-04 18:20:20 +0200
committerWim Taymans <wtaymans@redhat.com>2020-08-04 18:20:20 +0200
commit9290137931edbc40d073cdd8be5752e088f5fd58 (patch)
treee3ec804455b1f2c053d9776cb2d5208230c6d194 /pipewire-pulseaudio
parent377b3f9d425c7a33c14fe1d8e43379d08d9eaef1 (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.c3
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);