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
|
|
@ -466,7 +466,7 @@ static void session_create(void *data, struct sm_object *object)
|
|||
struct stream *str;
|
||||
const char *media_class, *routes;
|
||||
|
||||
if (strcmp(object->type, PW_TYPE_INTERFACE_Node) != 0 ||
|
||||
if (!spa_streq(object->type, PW_TYPE_INTERFACE_Node) ||
|
||||
object->props == NULL ||
|
||||
(media_class = pw_properties_get(object->props, PW_KEY_MEDIA_CLASS)) == NULL)
|
||||
return;
|
||||
|
|
@ -506,7 +506,7 @@ static void session_remove(void *data, struct sm_object *object)
|
|||
struct impl *impl = data;
|
||||
struct stream *str;
|
||||
|
||||
if (strcmp(object->type, PW_TYPE_INTERFACE_Node) != 0)
|
||||
if (!spa_streq(object->type, PW_TYPE_INTERFACE_Node))
|
||||
return;
|
||||
|
||||
pw_log_debug(NAME " %p: remove node '%d'", impl, object->id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue