mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
validate: More usage of g_strcmp0 instead of strcmp
This commit is contained in:
parent
ec7cd5a092
commit
9772e0c1d2
3 changed files with 3 additions and 3 deletions
|
@ -532,7 +532,7 @@ _structure_is_video (GstStructure * structure)
|
||||||
const gchar *name = gst_structure_get_name (structure);
|
const gchar *name = gst_structure_get_name (structure);
|
||||||
|
|
||||||
return g_strstr_len (name, 6, "video/")
|
return g_strstr_len (name, 6, "video/")
|
||||||
&& strcmp (name, "video/quicktime") != 0;
|
&& g_strcmp0 (name, "video/quicktime") != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
|
@ -2395,7 +2395,7 @@ _get_target_element (GstValidateScenario * scenario, GstValidateAction * action)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp (GST_OBJECT_NAME (pipeline), name) == 0) {
|
if (g_strcmp0 (GST_OBJECT_NAME (pipeline), name) == 0) {
|
||||||
target = gst_object_ref (pipeline);
|
target = gst_object_ref (pipeline);
|
||||||
} else {
|
} else {
|
||||||
target = gst_bin_get_by_name (GST_BIN (pipeline), name);
|
target = gst_bin_get_by_name (GST_BIN (pipeline), name);
|
||||||
|
|
|
@ -925,7 +925,7 @@ gst_validate_element_matches_target (GstElement * element, GstStructure * s)
|
||||||
const gchar *tmp;
|
const gchar *tmp;
|
||||||
|
|
||||||
tmp = gst_structure_get_string (s, "target-element-name");
|
tmp = gst_structure_get_string (s, "target-element-name");
|
||||||
if (tmp != NULL && !strcmp (tmp, GST_ELEMENT_NAME (element)))
|
if (tmp != NULL && !g_strcmp0 (tmp, GST_ELEMENT_NAME (element)))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
tmp = gst_structure_get_string (s, "target-element-klass");
|
tmp = gst_structure_get_string (s, "target-element-klass");
|
||||||
|
|
Loading…
Reference in a new issue