From 2135b2b34fb5ad2627ed2b01e5ecb5ed1240f32a Mon Sep 17 00:00:00 2001 From: David Henningsson Date: Thu, 21 Mar 2013 18:25:09 +0100 Subject: [PATCH] sink-input: Make sure the process_underrun callback is cleared Otherwise sink unlinking could cause a segfault. Reported-by: heftig Signed-off-by: David Henningsson --- src/pulsecore/sink-input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pulsecore/sink-input.c b/src/pulsecore/sink-input.c index cefa645ce..6131bd3b5 100644 --- a/src/pulsecore/sink-input.c +++ b/src/pulsecore/sink-input.c @@ -254,6 +254,7 @@ static void reset_callbacks(pa_sink_input *i) { pa_assert(i); i->pop = NULL; + i->process_underrun = NULL; i->process_rewind = NULL; i->update_max_rewind = NULL; i->update_max_request = NULL;