return runner->priv->default_level;
}
+#if !GLIB_CHECK_VERSION(2,70,0)
+#define g_pattern_spec_match_string g_pattern_match_string
+#endif
+
/*
* gst_validate_runner_get_reporting_level_for_name:
*
_replace_double_colons (fixed_name);
for (tmp = runner->priv->report_pattern_levels; tmp; tmp = tmp->next) {
PatternLevel *pattern_level = (PatternLevel *) tmp->data;
- if (g_pattern_match_string (pattern_level->pattern, fixed_name)) {
+ if (g_pattern_spec_match_string (pattern_level->pattern, fixed_name)) {
g_free (fixed_name);
return pattern_level->level;
gst_object_unref (bus);
}
+#if !GLIB_CHECK_VERSION(2,70,0)
+#define g_pattern_spec_match_string g_pattern_match_string
+#endif
+
/* Return GList of paths described in location string */
static GList *
handle_wildcards (const gchar * location)
}
while ((name = g_dir_read_name (dir)) != NULL) {
- if (g_pattern_match_string (pspec, name)) {
+ if (g_pattern_spec_match_string (pspec, name)) {
res = g_list_append (res, g_strjoin ("/", path, name, NULL));
g_print (" found clip %s\n", name);
}
gst_object_unref (bus);
}
+#if !GLIB_CHECK_VERSION(2,70,0)
+#define g_pattern_spec_match_string g_pattern_match_string
+#endif
+
/* Return GList of paths described in location string */
static GList *
handle_wildcards (const gchar * location)
}
while ((name = g_dir_read_name (dir)) != NULL) {
- if (g_pattern_match_string (pspec, name)) {
+ if (g_pattern_spec_match_string (pspec, name)) {
res = g_list_append (res, g_strjoin ("/", path, name, NULL));
g_print (" found clip %s\n", name);
}
return (GstDebugLevel) g_atomic_int_get (&__default_level);
}
+#if !GLIB_CHECK_VERSION(2,70,0)
+#define g_pattern_spec_match_string g_pattern_match_string
+#endif
+
static gboolean
gst_debug_apply_entry (GstDebugCategory * cat, LevelNameEntry * entry)
{
- if (!g_pattern_match_string (entry->pat, cat->name))
+ if (!g_pattern_spec_match_string (entry->pat, cat->name))
return FALSE;
if (gst_is_initialized ())