mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
treewide: replace !strcmp() 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
7697ed0757
commit
95a84e797a
28 changed files with 239 additions and 221 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#include <gst/video/video.h>
|
||||
#include <gst/audio/audio.h>
|
||||
|
||||
#include <spa/utils/string.h>
|
||||
#include <spa/utils/type.h>
|
||||
#include <spa/param/video/format-utils.h>
|
||||
#include <spa/param/audio/format-utils.h>
|
||||
|
|
@ -188,7 +189,7 @@ find_media_types (const char *name)
|
|||
{
|
||||
int i;
|
||||
for (i = 0; media_type_map[i].name; i++) {
|
||||
if (!strcmp (media_type_map[i].name, name))
|
||||
if (spa_streq(media_type_map[i].name, name))
|
||||
return &media_type_map[i];
|
||||
}
|
||||
return NULL;
|
||||
|
|
@ -478,9 +479,9 @@ handle_audio_fields (ConvertData *d)
|
|||
for (i = 0; (v = get_nth_string (value, i)); i++) {
|
||||
enum spa_audio_layout layout;
|
||||
|
||||
if (!strcmp (v, "interleaved"))
|
||||
if (spa_streq(v, "interleaved"))
|
||||
layout = SPA_AUDIO_LAYOUT_INTERLEAVED;
|
||||
else if (!strcmp (v, "non-interleaved"))
|
||||
else if (spa_streq(v, "non-interleaved"))
|
||||
layout = SPA_AUDIO_LAYOUT_NON_INTERLEAVED;
|
||||
else
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue