Sebastian Dröge 562cecaef4 clock: Fix 32 bit assertions in GST_TIME_TO_TIMEVAL and GST_TIME_TO_TIMESPEC
On various 32 bit systems, time_t is actually 64 bits while long is
still only 32 bits. The macro would wrongly trigger its assertion in
this case if a value with more than 68 years worth of seconds is
converted.

Examples are various newer 32 bit platforms and old ones that are
compiled with -D_TIME_BITS=64.

Also statically assert that time_t is either 32 or 64 bits. Other values
might need adjustments in the macro.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6869>
2024-05-24 09:27:01 +00:00
..
2023-06-26 19:56:55 +02:00
2022-11-09 16:03:58 +00:00
2022-12-20 14:03:35 +00:00
2023-01-24 15:25:05 +00:00
2023-01-24 15:25:05 +00:00
2023-01-24 15:25:05 +00:00
2023-01-24 15:25:05 +00:00
2024-02-20 12:30:39 +00:00
2024-02-20 19:16:54 +00:00
2024-02-20 19:16:54 +00:00
2022-10-22 22:06:13 +09:00
2023-01-24 15:25:05 +00:00
2023-06-22 23:24:58 +00:00
2023-01-24 15:25:06 +00:00
2023-01-24 15:25:05 +00:00