diff options
-rw-r--r-- | tools/gst-inspect.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/gst-inspect.c b/tools/gst-inspect.c index 1d09b08b94..46d7f3bcce 100644 --- a/tools/gst-inspect.c +++ b/tools/gst-inspect.c @@ -132,6 +132,7 @@ n_print (const char *format, ...) { va_list args; int i; + gchar *str; if (_name) g_print ("%s", _name); @@ -140,8 +141,14 @@ n_print (const char *format, ...) g_print (" "); va_start (args, format); - g_vprintf (format, args); + str = gst_info_strdup_vprintf (format, args); va_end (args); + + if (!str) + return; + + g_print ("%s", str); + g_free (str); } static gboolean |