mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04: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
|
|
@ -1136,7 +1136,7 @@ static void sink_info_cb(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa_t
|
|||
|
||||
pa_proplist_free(pl);
|
||||
|
||||
if (!u->sink_name || strcmp(name, u->sink_name))
|
||||
if (!u->sink_name || !pa_streq(name, u->sink_name))
|
||||
return;
|
||||
|
||||
pa_xfree(u->device_description);
|
||||
|
|
@ -1347,7 +1347,7 @@ static void source_info_cb(pa_pdispatch *pd, uint32_t command, uint32_t tag, pa
|
|||
|
||||
pa_proplist_free(pl);
|
||||
|
||||
if (!u->source_name || strcmp(name, u->source_name))
|
||||
if (!u->source_name || !pa_streq(name, u->source_name))
|
||||
return;
|
||||
|
||||
pa_xfree(u->device_description);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue