mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -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
|
|
@ -163,17 +163,17 @@ static void resolver_cb(
|
|||
char *key, *value;
|
||||
pa_assert_se(avahi_string_list_get_pair(l, &key, &value, NULL) == 0);
|
||||
|
||||
if (strcmp(key, "device") == 0) {
|
||||
if (pa_streq(key, "device")) {
|
||||
pa_xfree(device);
|
||||
device = value;
|
||||
value = NULL;
|
||||
} else if (strcmp(key, "rate") == 0)
|
||||
} else if (pa_streq(key, "rate"))
|
||||
ss.rate = (uint32_t) atoi(value);
|
||||
else if (strcmp(key, "channels") == 0)
|
||||
else if (pa_streq(key, "channels"))
|
||||
ss.channels = (uint8_t) atoi(value);
|
||||
else if (strcmp(key, "format") == 0)
|
||||
else if (pa_streq(key, "format"))
|
||||
ss.format = pa_parse_sample_format(value);
|
||||
else if (strcmp(key, "channel_map") == 0) {
|
||||
else if (pa_streq(key, "channel_map")) {
|
||||
pa_channel_map_parse(&cm, value);
|
||||
channel_map_set = TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue