info: take the timestamp a tick later

The logging is not an atomic operation and because of the multi-threading we end
up with out-of-order log lines. Tools that present the log-file should probably
resort the lines. This change just takes the timestamp a bit closer to the
actual logging.
This commit is contained in:
Stefan Kost 2010-08-05 10:32:53 +03:00
parent 2237af4b6b
commit f547482e7c

View file

@ -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 */