From f823ef9cf78490b261ed376439203adf2a42edb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 11 Nov 2017 13:00:50 +0100 Subject: [PATCH] Add constants for SECONDS, etc in u64 --- gstreamer/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gstreamer/src/lib.rs b/gstreamer/src/lib.rs index 321890b3a..950067c95 100644 --- a/gstreamer/src/lib.rs +++ b/gstreamer/src/lib.rs @@ -164,6 +164,11 @@ pub const MSECOND: ClockTime = ClockTime(Some(1_000_000)); pub const USECOND: ClockTime = ClockTime(Some(1_000)); pub const NSECOND: ClockTime = ClockTime(Some(1)); +pub const SECOND_VAL: u64 = 1_000_000_000; +pub const MSECOND_VAL: u64 = 1_000_000; +pub const USECOND_VAL: u64 = 1_000; +pub const NSECOND_VAL: u64 = 1; + pub const FORMAT_PERCENT_MAX: u32 = ffi::GST_FORMAT_PERCENT_MAX as u32; pub const FORMAT_PERCENT_SCALE: u32 = ffi::GST_FORMAT_PERCENT_SCALE as u32;