mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
remap: init the do_remap function to NULL
This commit is contained in:
parent
28baa53d55
commit
e961efc130
1 changed files with 4 additions and 2 deletions
|
|
@ -184,11 +184,13 @@ static pa_init_remap_func_t remap_func = init_remap_c;
|
||||||
void pa_init_remap (pa_remap_t *m) {
|
void pa_init_remap (pa_remap_t *m) {
|
||||||
pa_assert (remap_func);
|
pa_assert (remap_func);
|
||||||
|
|
||||||
/* just call the installed remap init functions */
|
m->do_remap = NULL;
|
||||||
|
|
||||||
|
/* call the installed remap init function */
|
||||||
remap_func (m);
|
remap_func (m);
|
||||||
|
|
||||||
if (m->do_remap == NULL) {
|
if (m->do_remap == NULL) {
|
||||||
/* nothing was installed, fallback to C versions */
|
/* nothing was installed, fallback to C version */
|
||||||
init_remap_c (m);
|
init_remap_c (m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue