mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
parent
ff62f3f1e0
commit
e745a2bcf0
2 changed files with 4 additions and 3 deletions
|
@ -521,7 +521,7 @@ gst_system_clock_get_internal_time (GstClock * clock)
|
|||
GST_SECOND, sysclock->priv->frequency.QuadPart);
|
||||
} else
|
||||
#endif /* G_OS_WIN32 */
|
||||
#if !defined HAVE_POSIX_TIMERS
|
||||
#if !defined HAVE_POSIX_TIMERS || !defined HAVE_CLOCK_GETTIME
|
||||
{
|
||||
GTimeVal timeval;
|
||||
|
||||
|
@ -555,7 +555,7 @@ gst_system_clock_get_resolution (GstClock * clock)
|
|||
return GST_SECOND / sysclock->priv->frequency.QuadPart;
|
||||
} else
|
||||
#endif /* G_OS_WIN32 */
|
||||
#ifdef HAVE_POSIX_TIMERS
|
||||
#if defined(HAVE_POSIX_TIMERS) && defined(HAVE_CLOCK_GETTIME)
|
||||
{
|
||||
GstSystemClock *sysclock = GST_SYSTEM_CLOCK_CAST (clock);
|
||||
clockid_t ptype;
|
||||
|
|
|
@ -3096,7 +3096,8 @@ gst_parse_bin_from_description_full (const gchar * bin_description,
|
|||
GstClockTime
|
||||
gst_util_get_timestamp (void)
|
||||
{
|
||||
#if defined (HAVE_POSIX_TIMERS) && defined(HAVE_MONOTONIC_CLOCK)
|
||||
#if defined (HAVE_POSIX_TIMERS) && defined(HAVE_MONOTONIC_CLOCK) &&\
|
||||
defined (HAVE_CLOCK_GETTIME)
|
||||
struct timespec now;
|
||||
|
||||
clock_gettime (CLOCK_MONOTONIC, &now);
|
||||
|
|
Loading…
Reference in a new issue