validate: Use Gst printing utils in our reporting system

Allowing us to use GST_PTR_FORMAT and friends!
This commit is contained in:
Thibault Saunier 2017-06-30 09:45:02 -04:00
parent c540601ed0
commit dbc598b378

View file

@ -861,6 +861,7 @@ void
gst_validate_printf_valist (gpointer source, const gchar * format, va_list args) gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
{ {
gint i; gint i;
gchar *tmp;
GString *string = g_string_new (NULL); GString *string = g_string_new (NULL);
if (source) { if (source) {
@ -941,7 +942,9 @@ gst_validate_printf_valist (gpointer source, const gchar * format, va_list args)
} }
} }
g_string_append_vprintf (string, format, args); tmp = gst_info_strdup_vprintf (format, args);
g_string_append (string, tmp);
g_free (tmp);
if (!newline_regex) if (!newline_regex)
newline_regex = newline_regex =