summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2020-08-04 18:11:58 +0200
committerWim Taymans <wtaymans@redhat.com>2020-08-04 18:11:58 +0200
commit94c23b7ed1c7164618c965ae455330aff9109ef5 (patch)
treebe50060734a8b2213f1d75389d86717e89871ce5
parent35376fc4150966953bc0cf2ce02ebc76bd7ef717 (diff)
pulse: handle memory user_data of NULL
-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 cb9bba3c..d44e00c6 100644
--- a/pipewire-pulseaudio/src/stream.c
+++ b/pipewire-pulseaudio/src/stream.c
@@ -1561,7 +1561,8 @@ pa_operation* pa_stream_flush(pa_stream *s, pa_stream_success_cb_t cb, void *use
spa_list_remove(&m->link);
spa_list_append(&s->free, &m->link);
m->user_data = NULL;
- b->user_data = NULL;
+ if (b)
+ b->user_data = NULL;
}
s->ready_bytes = 0;
s->timing_info.write_index = s->timing_info.read_index = 0;