mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
GStreamer consultants will make a lot of money in 2038
Original commit message from CVS: GStreamer consultants will make a lot of money in 2038
This commit is contained in:
parent
d9ffe247f6
commit
9eea358a9e
3 changed files with 17 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-10-16 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst/gstclock.h:
|
||||
document potential problem in 2038
|
||||
|
||||
2005-10-16 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst/gstcaps.c: (gst_caps_intersect):
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit e8d4a23bcbd07bbdf00f9e35787000e96fff9fc2
|
||||
Subproject commit 13fb2970eba070acfad554a1fa7b03a680ed95d6
|
|
@ -114,17 +114,24 @@ typedef gpointer GstClockID;
|
|||
* Convert a GTimeVal to a #GstClockTime.
|
||||
*/
|
||||
#define GST_TIMEVAL_TO_TIME(tv) ((tv).tv_sec * GST_SECOND + (tv).tv_usec * GST_USECOND)
|
||||
|
||||
/**
|
||||
* GST_TIME_TO_TIMEVAL:
|
||||
* @t: The GstClockTime to convert
|
||||
* @tv: The target timeval
|
||||
*
|
||||
* Note: on 32-bit systems, a timeval has a range of only 2^32 - 1 seconds,
|
||||
* which is about 68 years. Expect trouble if you want to schedule stuff
|
||||
* in your pipeline for 2038.
|
||||
*
|
||||
* Convert a GstClockTime to a GTimeVal
|
||||
*/
|
||||
#define GST_TIME_TO_TIMEVAL(t,tv) \
|
||||
G_STMT_START { \
|
||||
(tv).tv_sec = ((GstClockTime)(t)) / GST_SECOND; \
|
||||
(tv).tv_usec = (((GstClockTime)(t)) - (tv).tv_sec * GST_SECOND) / GST_USECOND; \
|
||||
#define GST_TIME_TO_TIMEVAL(t,tv) \
|
||||
G_STMT_START { \
|
||||
(tv).tv_sec = ((GstClockTime) (t)) / GST_SECOND; \
|
||||
(tv).tv_usec = (((GstClockTime) (t)) - \
|
||||
((GstClockTime) (tv).tv_sec) * GST_SECOND) \
|
||||
/ GST_USECOND; \
|
||||
} G_STMT_END
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue