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:
023ba89
)
allow scache entries to have arbitrary names
author
Lennart Poettering
<lennart@poettering.net>
Mon, 23 Feb 2009 21:57:09 +0000
(22:57 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 23 Feb 2009 21:57:09 +0000
(22:57 +0100)
src/pulsecore/namereg.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/namereg.c
b/src/pulsecore/namereg.c
index
86bcef7
..
5ab3036
100644
(file)
--- a/
src/pulsecore/namereg.c
+++ b/
src/pulsecore/namereg.c
@@
-194,7
+194,11
@@
void* pa_namereg_get(pa_core *c, const char *name, pa_namereg_type_t type) {
}
- if (!name || *name == '@' || !pa_namereg_is_valid_name(name))
+ if (!name)
+ return NULL;
+
+ if ((type == PA_NAMEREG_SINK || type == PA_NAMEREG_SOURCE || type == PA_NAMEREG_CARD) &&
+ !pa_namereg_is_valid_name(name))
return NULL;
if ((e = pa_hashmap_get(c->namereg, name)))