mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-17 07:00:03 -05: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
|
|
@ -197,7 +197,7 @@ static int configure_node(struct node *node, struct spa_audio_info *info, bool f
|
|||
if (node->configured && !force)
|
||||
return 0;
|
||||
|
||||
if (strcmp(node->media, "Audio") != 0)
|
||||
if (!spa_streq(node->media, "Audio"))
|
||||
return 0;
|
||||
|
||||
format = node->format;
|
||||
|
|
@ -550,7 +550,7 @@ static int find_node(void *data, struct node *node)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (node->media && strcmp(node->media, find->media) != 0) {
|
||||
if (node->media && !spa_streq(node->media, find->media)) {
|
||||
pw_log_debug(".. incompatible media %s <-> %s", node->media, find->media);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue