summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-08-20 18:32:51 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2009-08-20 18:32:51 +0200
commite961efc130481ff4c5a053eb03dd3ec4d513c615 (patch)
tree26180bab64ac7da52d368576dd0c43f281c24c64
parent28baa53d55fa51d5fbbb1be54db3581fc3d151dd (diff)
remap: init the do_remap function to NULL
-rw-r--r--src/pulsecore/remap.c6
1 files changed, 4 insertions, 2 deletions
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);
}
}