mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
ouch!
fix brown paperbag bug which was triggered when runnign "pavumeter" and specifying a sink on the command line. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@817 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
22c679e393
commit
cd93661dcb
2 changed files with 2 additions and 3 deletions
|
|
@ -127,7 +127,7 @@ void* pa_namereg_get(pa_core *c, const char *name, pa_namereg_type_t type, int a
|
|||
return NULL;
|
||||
|
||||
if (c->namereg && (e = pa_hashmap_get(c->namereg, name)))
|
||||
if (e->type == e->type)
|
||||
if (e->type == type)
|
||||
return e->data;
|
||||
|
||||
if (pa_atou(name, &idx) < 0) {
|
||||
|
|
@ -136,7 +136,7 @@ void* pa_namereg_get(pa_core *c, const char *name, pa_namereg_type_t type, int a
|
|||
pa_autoload_request(c, name, type);
|
||||
|
||||
if (c->namereg && (e = pa_hashmap_get(c->namereg, name)))
|
||||
if (e->type == e->type)
|
||||
if (e->type == type)
|
||||
return e->data;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue