mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -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
|
|
@ -28,6 +28,7 @@
|
|||
#include <arpa/inet.h>
|
||||
|
||||
#include <spa/param/audio/format.h>
|
||||
#include <spa/utils/string.h>
|
||||
|
||||
#include <sbc/sbc.h>
|
||||
|
||||
|
|
@ -164,7 +165,7 @@ static int codec_select_config(const struct a2dp_codec *codec, uint32_t flags,
|
|||
if (caps_size < sizeof(conf))
|
||||
return -EINVAL;
|
||||
|
||||
xq = (strcmp(codec->name, "sbc_xq") == 0);
|
||||
xq = (spa_streq(codec->name, "sbc_xq"));
|
||||
|
||||
memcpy(&conf, caps, sizeof(conf));
|
||||
|
||||
|
|
@ -235,7 +236,7 @@ static int codec_caps_preference_cmp(const struct a2dp_codec *codec, const void
|
|||
a2dp_sbc_t *conf;
|
||||
int res1, res2;
|
||||
int a, b;
|
||||
bool xq = (strcmp(codec->name, "sbc_xq") == 0);
|
||||
bool xq = (spa_streq(codec->name, "sbc_xq"));
|
||||
|
||||
/* Order selected configurations by preference */
|
||||
res1 = codec->select_config(codec, 0, caps1, caps1_size, info, NULL, (uint8_t *)&conf1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue