remap: init the do_remap function to NULL

This commit is contained in:
Wim Taymans 2009-08-20 18:32:51 +02:00
parent 28baa53d55
commit e961efc130

View file

@ -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);
}
}