diff --git a/gst/gstinfo.c b/gst/gstinfo.c index 3126eef47b..f64d11e1cb 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -914,15 +914,15 @@ gst_debug_log_default (GstDebugCategory * category, GstDebugLevel level, pid = getpid (); is_colored = gst_debug_is_colored (); - elapsed = GST_CLOCK_DIFF (_priv_gst_info_start_time, - gst_util_get_timestamp ()); - if (object) { obj = gst_debug_print_object (object); } else { obj = g_strdup (""); } + elapsed = GST_CLOCK_DIFF (_priv_gst_info_start_time, + gst_util_get_timestamp ()); + if (is_colored) { #ifndef G_OS_WIN32 /* colors, non-windows */