diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-08-20 18:29:02 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-08-20 18:29:02 +0200 |
commit | 28baa53d55fa51d5fbbb1be54db3581fc3d151dd (patch) | |
tree | 0be302c5e9d73693a3f4289367adfb8e2c83041a /src/pulsecore/remap.c | |
parent | ac1f2e0a2e0707636aabd48baa57c124a877f834 (diff) |
remap: allow specialisations to install NULL
Fallback to the default C implementation when the remap init function did not
set a function.
Diffstat (limited to 'src/pulsecore/remap.c')
-rw-r--r-- | src/pulsecore/remap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pulsecore/remap.c b/src/pulsecore/remap.c index 2e93afce..108df900 100644 --- 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); + + 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) { |