Skip to content
Snippets Groups Projects
Commit 20973203 authored by Thomas Guillem's avatar Thomas Guillem Committed by Hugo Beauzée-Luyssen
Browse files

tracer: use a define for tick -> integer conversion

parent 1a54b8d2
No related branches found
No related tags found
1 merge request!1903tracer: json: use a define for tick->tracer_time conversion
......@@ -52,6 +52,8 @@ typedef union
const char *string;
} vlc_tracer_value_t;
#define VLC_TRACER_TIME_FROM_TICK(ts) NS_FROM_VLC_TICK(ts)
/**
* Trace message
*/
......@@ -100,7 +102,7 @@ VLC_API void vlc_tracer_Trace(struct vlc_tracer *tracer, ...);
static inline struct vlc_tracer_entry vlc_tracer_entry_FromTick(const char *key, vlc_tick_t value)
{
vlc_tracer_value_t tracer_value;
tracer_value.integer = NS_FROM_VLC_TICK(value);
tracer_value.integer = VLC_TRACER_TIME_FROM_TICK(value);
struct vlc_tracer_entry trace = { key, tracer_value, VLC_TRACER_INT };
return trace;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment