projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ac1f2e0
)
remap: allow specialisations to install NULL
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 20 Aug 2009 16:29:02 +0000
(18:29 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Thu, 20 Aug 2009 16:29:02 +0000
(18:29 +0200)
Fallback to the default C implementation when the remap init function did not
set a function.
src/pulsecore/remap.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/remap.c
b/src/pulsecore/remap.c
index
2e93afc
..
108df90
100644
(file)
--- a/
src/pulsecore/remap.c
+++ b/
src/pulsecore/remap.c
@@
-186,6
+186,11
@@
void pa_init_remap (pa_remap_t *m) {
/* just call the installed remap init functions */
remap_func (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) {
}
pa_init_remap_func_t pa_get_init_remap_func(void) {