mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
treewide: replace strcmp() != 0 with !spa_streq
This change is only done in source files for now, header files will be done separately.
This commit is contained in:
parent
95a84e797a
commit
522f87d5ea
40 changed files with 83 additions and 79 deletions
|
|
@ -1085,7 +1085,7 @@ static void registry_event_global(void *data, uint32_t id,
|
|||
if (spa_streq(type, PW_TYPE_INTERFACE_Device)) {
|
||||
if (props == NULL ||
|
||||
((str = spa_dict_lookup(props, PW_KEY_MEDIA_CLASS)) == NULL) ||
|
||||
(strcmp(str, "Audio/Device") != 0))
|
||||
(!spa_streq(str, "Audio/Device")))
|
||||
return;
|
||||
|
||||
pw_log_debug("found device %d", id);
|
||||
|
|
@ -1093,8 +1093,8 @@ static void registry_event_global(void *data, uint32_t id,
|
|||
} else if (spa_streq(type, PW_TYPE_INTERFACE_Node)) {
|
||||
if (props == NULL ||
|
||||
((str = spa_dict_lookup(props, PW_KEY_MEDIA_CLASS)) == NULL) ||
|
||||
((strcmp(str, "Audio/Sink") != 0) &&
|
||||
(strcmp(str, "Audio/Source") != 0)))
|
||||
((!spa_streq(str, "Audio/Sink")) &&
|
||||
(!spa_streq(str, "Audio/Source"))))
|
||||
return;
|
||||
|
||||
pw_log_debug("found node %d type:%s", id, str);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue