[vlc-devel] [PATCH 2/6] include: move vlc_tick_t in vlc_mtime.h
Steve Lhomme
robux4 at ycbcr.xyz
Wed Jun 20 08:54:32 CEST 2018
---
include/vlc_common.h | 13 -------------
include/vlc_mtime.h | 13 +++++++++++++
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index 80c14742cc..bba8d47750 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -276,19 +276,6 @@
/*****************************************************************************
* Basic types definitions
*****************************************************************************/
-/**
- * High precision date or time interval
- *
- * Store a high precision date or time interval. The maximum precision is the
- * microsecond, and a 64 bits integer is used to avoid overflows (maximum
- * time interval is then 292271 years, which should be long enough for any
- * video). Dates are stored as microseconds since a common date (usually the
- * epoch). Note that date and time intervals can be manipulated using regular
- * arithmetic operators, and that no special functions are required.
- */
-typedef int64_t vlc_tick_t;
-typedef vlc_tick_t mtime_t; /* deprecated, use vlc_tick_t */
-
/**
* The vlc_fourcc_t type.
*
diff --git a/include/vlc_mtime.h b/include/vlc_mtime.h
index 39f594680d..63649bc47f 100644
--- a/include/vlc_mtime.h
+++ b/include/vlc_mtime.h
@@ -32,6 +32,19 @@
#ifndef __VLC_MTIME_H
# define __VLC_MTIME_H 1
+/**
+ * High precision date or time interval
+ *
+ * Store a high precision date or time interval. The maximum precision is the
+ * microsecond, and a 64 bits integer is used to avoid overflows (maximum
+ * time interval is then 292271 years, which should be long enough for any
+ * video). Dates are stored as microseconds since a common date (usually the
+ * epoch). Note that date and time intervals can be manipulated using regular
+ * arithmetic operators, and that no special functions are required.
+ */
+typedef int64_t vlc_tick_t;
+typedef vlc_tick_t mtime_t; /* deprecated, use vlc_tick_t */
+
/*****************************************************************************
* MSTRTIME_MAX_SIZE: maximum possible size of mstrtime
*****************************************************************************
--
2.17.0
More information about the vlc-devel
mailing list