mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
2237af4b6b
commit
f547482e7c
1 changed files with 3 additions and 3 deletions
|
@ -914,15 +914,15 @@ gst_debug_log_default (GstDebugCategory * category, GstDebugLevel level,
|
||||||
pid = getpid ();
|
pid = getpid ();
|
||||||
is_colored = gst_debug_is_colored ();
|
is_colored = gst_debug_is_colored ();
|
||||||
|
|
||||||
elapsed = GST_CLOCK_DIFF (_priv_gst_info_start_time,
|
|
||||||
gst_util_get_timestamp ());
|
|
||||||
|
|
||||||
if (object) {
|
if (object) {
|
||||||
obj = gst_debug_print_object (object);
|
obj = gst_debug_print_object (object);
|
||||||
} else {
|
} else {
|
||||||
obj = g_strdup ("");
|
obj = g_strdup ("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
elapsed = GST_CLOCK_DIFF (_priv_gst_info_start_time,
|
||||||
|
gst_util_get_timestamp ());
|
||||||
|
|
||||||
if (is_colored) {
|
if (is_colored) {
|
||||||
#ifndef G_OS_WIN32
|
#ifndef G_OS_WIN32
|
||||||
/* colors, non-windows */
|
/* colors, non-windows */
|
||||||
|
|
Loading…
Reference in a new issue