diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-08-04 18:11:58 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-08-04 18:11:58 +0200 |
commit | 94c23b7ed1c7164618c965ae455330aff9109ef5 (patch) | |
tree | be50060734a8b2213f1d75389d86717e89871ce5 | |
parent | 35376fc4150966953bc0cf2ce02ebc76bd7ef717 (diff) |
pulse: handle memory user_data of NULL
-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 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; |