mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -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
|
|
@ -93,11 +93,11 @@ static void registry_event_global(void *data, uint32_t id, uint32_t permissions,
|
|||
struct data *d = data;
|
||||
const char *str;
|
||||
|
||||
if (strcmp(type, PW_TYPE_INTERFACE_Metadata) != 0)
|
||||
if (!spa_streq(type, PW_TYPE_INTERFACE_Metadata))
|
||||
return;
|
||||
|
||||
if ((str = spa_dict_lookup(props, PW_KEY_METADATA_NAME)) != NULL &&
|
||||
strcmp(str, d->opt_name) != 0)
|
||||
!spa_streq(str, d->opt_name))
|
||||
return;
|
||||
|
||||
if (d->metadata != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue