mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-04-09 08:21:21 -04:00
alsa:remove the define of shadow variables
the void* state had been defined before
This commit is contained in:
parent
90a6c5ef07
commit
b43c511459
2 changed files with 0 additions and 2 deletions
|
|
@ -2600,7 +2600,6 @@ pa_sink *pa_alsa_sink_new(pa_module *m, pa_modargs *ma, const char*driver, pa_ca
|
||||||
|
|
||||||
if (u->ucm_context) {
|
if (u->ucm_context) {
|
||||||
pa_device_port *port;
|
pa_device_port *port;
|
||||||
void *state;
|
|
||||||
unsigned h_prio = 0;
|
unsigned h_prio = 0;
|
||||||
PA_HASHMAP_FOREACH(port, u->sink->ports, state) {
|
PA_HASHMAP_FOREACH(port, u->sink->ports, state) {
|
||||||
if (!h_prio || port->priority > h_prio)
|
if (!h_prio || port->priority > h_prio)
|
||||||
|
|
|
||||||
|
|
@ -2286,7 +2286,6 @@ pa_source *pa_alsa_source_new(pa_module *m, pa_modargs *ma, const char*driver, p
|
||||||
|
|
||||||
if (u->ucm_context) {
|
if (u->ucm_context) {
|
||||||
pa_device_port *port;
|
pa_device_port *port;
|
||||||
void *state;
|
|
||||||
unsigned h_prio = 0;
|
unsigned h_prio = 0;
|
||||||
PA_HASHMAP_FOREACH(port, u->source->ports, state) {
|
PA_HASHMAP_FOREACH(port, u->source->ports, state) {
|
||||||
if (!h_prio || port->priority > h_prio)
|
if (!h_prio || port->priority > h_prio)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue