diff options
author | Seungha Yang <seungha@centricular.com> | 2021-07-20 10:52:12 +0300 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2021-07-26 12:20:42 +0300 |
commit | add1f17c57a68e02a34765a4dd2312fbba8af333 (patch) | |
tree | f26942714cfc3bcaa96a87eae0525c951f2bbe18 | |
parent | b1b5b2d4cd5f95696dafdaee60606b4d02a125a6 (diff) |
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/855>
-rw-r--r-- | gst/gstsystemclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |