From e961efc130481ff4c5a053eb03dd3ec4d513c615 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 20 Aug 2009 18:32:51 +0200 Subject: remap: init the do_remap function to NULL --- src/pulsecore/remap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/pulsecore/remap.c') diff --git a/src/pulsecore/remap.c b/src/pulsecore/remap.c index 108df900..a0fc85b9 100644 --- a/src/pulsecore/remap.c +++ b/src/pulsecore/remap.c @@ -184,11 +184,13 @@ static pa_init_remap_func_t remap_func = init_remap_c; void pa_init_remap (pa_remap_t *m) { pa_assert (remap_func); - /* just call the installed remap init functions */ + m->do_remap = NULL; + + /* call the installed remap init function */ remap_func (m); if (m->do_remap == NULL) { - /* nothing was installed, fallback to C versions */ + /* nothing was installed, fallback to C version */ init_remap_c (m); } } -- cgit