add new pa_card object as a way to logically combine multiple sinks and sources

This commit is contained in:
Lennart Poettering 2009-01-15 18:29:16 +01:00
parent aeb0707f12
commit b6deb0cc4c
12 changed files with 327 additions and 4 deletions

View file

@ -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)