mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
modules: Use pa_streq instead of strcmp.
This commit is contained in:
parent
e0c16af551
commit
e5954aca8e
19 changed files with 45 additions and 45 deletions
|
|
@ -562,7 +562,7 @@ int pa__init(pa_module*m) {
|
|||
goto fail;
|
||||
}
|
||||
|
||||
if (strcmp(d->Label, label) == 0)
|
||||
if (pa_streq(d->Label, label))
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -627,7 +627,7 @@ int pa__init(pa_module*m) {
|
|||
|
||||
|
||||
for (p = 0; p < d->PortCount; p++) {
|
||||
if (strcmp(d->PortNames[p], pname) == 0) {
|
||||
if (pa_streq(d->PortNames[p], pname)) {
|
||||
if (LADSPA_IS_PORT_AUDIO(d->PortDescriptors[p]) && LADSPA_IS_PORT_INPUT(d->PortDescriptors[p])) {
|
||||
input_ladspaport[c] = p;
|
||||
} else {
|
||||
|
|
@ -653,7 +653,7 @@ int pa__init(pa_module*m) {
|
|||
goto fail;
|
||||
}
|
||||
for (p = 0; p < d->PortCount; p++) {
|
||||
if (strcmp(d->PortNames[p], pname) == 0) {
|
||||
if (pa_streq(d->PortNames[p], pname)) {
|
||||
if (LADSPA_IS_PORT_AUDIO(d->PortDescriptors[p]) && LADSPA_IS_PORT_OUTPUT(d->PortDescriptors[p])) {
|
||||
output_ladspaport[c] = p;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue