mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
treewide: replace plain strcmp() calls with spa_streq
This commit is contained in:
parent
522f87d5ea
commit
92514d57e4
7 changed files with 17 additions and 13 deletions
|
|
@ -45,6 +45,7 @@
|
|||
#include <spa/param/audio/format-utils.h>
|
||||
#include <spa/utils/names.h>
|
||||
#include <spa/utils/result.h>
|
||||
#include <spa/utils/string.h>
|
||||
|
||||
#define M_PI_M2 ( M_PI + M_PI )
|
||||
|
||||
|
|
@ -171,7 +172,7 @@ static int make_node(struct data *data, struct spa_node **node, const char *lib,
|
|||
}
|
||||
if (factory->version < 1)
|
||||
continue;
|
||||
if (strcmp(factory->name, name))
|
||||
if (!spa_streq(factory->name, name))
|
||||
continue;
|
||||
|
||||
handle = calloc(1, spa_handle_factory_get_size(factory, NULL));
|
||||
|
|
@ -456,7 +457,7 @@ static int load_handle(struct data *data, struct spa_handle **handle, const char
|
|||
}
|
||||
if (factory->version < 1)
|
||||
continue;
|
||||
if (strcmp(factory->name, name))
|
||||
if (!spa_streq(factory->name, name))
|
||||
continue;
|
||||
|
||||
*handle = calloc(1, spa_handle_factory_get_size(factory, NULL));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue