mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
remap: allow specialisations to install NULL
Fallback to the default C implementation when the remap init function did not set a function.
This commit is contained in:
parent
ac1f2e0a2e
commit
28baa53d55
1 changed files with 5 additions and 0 deletions
|
|
@ -186,6 +186,11 @@ void pa_init_remap (pa_remap_t *m) {
|
|||
|
||||
/* just call the installed remap init functions */
|
||||
remap_func (m);
|
||||
|
||||
if (m->do_remap == NULL) {
|
||||
/* nothing was installed, fallback to C versions */
|
||||
init_remap_c (m);
|
||||
}
|
||||
}
|
||||
|
||||
pa_init_remap_func_t pa_get_init_remap_func(void) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue