summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/namereg.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-01-15 18:29:16 +0100
committerLennart Poettering <lennart@poettering.net>2009-01-15 18:29:16 +0100
commitb6deb0cc4c169b5ef9450586fc66b0b823ef249c (patch)
treeaae25bfd17edabd2ded8bacfeb05034ad2602501 /src/pulsecore/namereg.c
parentaeb0707f1287c481d407d8e8f4a43f86661fdb23 (diff)
add new pa_card object as a way to logically combine multiple sinks and sources
Diffstat (limited to 'src/pulsecore/namereg.c')
-rw-r--r--src/pulsecore/namereg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/namereg.c b/src/pulsecore/namereg.c
index ecd8def8..c1a434ae 100644
--- a/src/pulsecore/namereg.c
+++ b/src/pulsecore/namereg.c
@@ -109,7 +109,7 @@ const char *pa_namereg_register(pa_core *c, const char *name, pa_namereg_type_t
if (!*name)
return NULL;
- if ((type == PA_NAMEREG_SINK || type == PA_NAMEREG_SOURCE) &&
+ if ((type == PA_NAMEREG_SINK || type == PA_NAMEREG_SOURCE || type == PA_NAMEREG_CARD) &&
!pa_namereg_is_valid_name(name)) {
if (fail)