From 209732037bdee35bf64d6a6269651569345315d4 Mon Sep 17 00:00:00 2001
From: Thomas Guillem <thomas@gllm.fr>
Date: Wed, 11 May 2022 16:28:30 +0200
Subject: [PATCH] tracer: use a define for tick -> integer conversion

---
 include/vlc_tracer.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/vlc_tracer.h b/include/vlc_tracer.h
index 1cd918c08848..be17217cd142 100644
--- a/include/vlc_tracer.h
+++ b/include/vlc_tracer.h
@@ -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;
 }
-- 
GitLab