mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -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
d8a9534a9a
commit
7697ed0757
130 changed files with 817 additions and 675 deletions
|
|
@ -29,6 +29,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#include <spa/utils/result.h>
|
||||
#include <spa/utils/string.h>
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
|
|
@ -455,7 +456,7 @@ static void registry_event_global(void *data, uint32_t id, uint32_t permissions,
|
|||
struct node_data *nd;
|
||||
const char *str;
|
||||
|
||||
if (strcmp(type, PW_TYPE_INTERFACE_Node) == 0) {
|
||||
if (spa_streq(type, PW_TYPE_INTERFACE_Node)) {
|
||||
struct pw_node *node;
|
||||
|
||||
node = pw_registry_bind(rd->registry,
|
||||
|
|
@ -482,7 +483,7 @@ static void registry_event_global(void *data, uint32_t id, uint32_t permissions,
|
|||
pw_proxy_add_listener((struct pw_proxy*)node, &nd->proxy_listener, &proxy_node_events, nd);
|
||||
resync(self);
|
||||
}
|
||||
else if (strcmp(type, PW_TYPE_INTERFACE_Port) == 0) {
|
||||
else if (spa_streq(type, PW_TYPE_INTERFACE_Port)) {
|
||||
struct pw_port *port;
|
||||
struct port_data *pd;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue