diff options
author | David Henningsson <david.henningsson@canonical.com> | 2013-03-21 18:25:09 +0100 |
---|---|---|
committer | David Henningsson <david.henningsson@canonical.com> | 2013-03-21 18:25:09 +0100 |
commit | 2135b2b34fb5ad2627ed2b01e5ecb5ed1240f32a (patch) | |
tree | 35ca6ed25f01d1e5b2c84a7c61cf0c9db6b6bd7d | |
parent | a560cf3b679aff998449533c9eecc716591734a6 (diff) |
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 <david.henningsson@canonical.com>
-rw-r--r-- | src/pulsecore/sink-input.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |