From add1f17c57a68e02a34765a4dd2312fbba8af333 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 20 Jul 2021 16:52:12 +0900 Subject: [PATCH] systemclock: Restore default clock mode to monotonic for non-linux system Before the MR https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/829 Windows and macOS system clock used monotonic clock regardless of selected clock mode. And because of clock resolution, we should prefer monotonic over realtime unless realtime clock is selected explicitly. Part-of: --- gst/gstsystemclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstsystemclock.c b/gst/gstsystemclock.c index fb9696575d..6d0b6ec47b 100644 --- a/gst/gstsystemclock.c +++ b/gst/gstsystemclock.c @@ -365,7 +365,7 @@ struct _GstSystemClockPrivate # define DEFAULT_CLOCK_TYPE GST_CLOCK_TYPE_REALTIME # endif #else -#define DEFAULT_CLOCK_TYPE GST_CLOCK_TYPE_REALTIME +#define DEFAULT_CLOCK_TYPE GST_CLOCK_TYPE_MONOTONIC #endif enum