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:
7933cba
)
Fix incorrect assert.
author
Pierre Ossman
<ossman@cendio.se>
Fri, 24 Nov 2006 09:29:10 +0000
(09:29 +0000)
committer
Pierre Ossman
<ossman@cendio.se>
Fri, 24 Nov 2006 09:29:10 +0000
(09:29 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1416
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulsecore/autoload.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/autoload.c
b/src/pulsecore/autoload.c
index
f686909
..
8e57d34
100644
(file)
--- a/
src/pulsecore/autoload.c
+++ b/
src/pulsecore/autoload.c
@@
-102,7
+102,7
@@
int pa_autoload_add(pa_core *c, const char*name, pa_namereg_type_t type, const c
int pa_autoload_remove_by_name(pa_core *c, const char*name, pa_namereg_type_t type) {
pa_autoload_entry *e;
- assert(c && name &&
type
);
+ assert(c && name &&
module && (type == PA_NAMEREG_SINK || type == PA_NAMEREG_SOURCE)
);
if (!c->autoload_hashmap || !(e = pa_hashmap_get(c->autoload_hashmap, name)) || e->type != type)
return -1;