From 58998af124774de3573d44d4672bef6a4d546d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 29 Aug 2017 11:56:30 +0300 Subject: [PATCH] Fix examples build again --- examples/src/bin/gtksink.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/bin/gtksink.rs b/examples/src/bin/gtksink.rs index 1210a6bf9..74f2e43e3 100644 --- a/examples/src/bin/gtksink.rs +++ b/examples/src/bin/gtksink.rs @@ -62,7 +62,7 @@ fn create_ui(app: >k::Application) { let position = pipeline.query_position(gst::Format::Time); if let Some(position) = position { - let mut seconds = position / gst::SECOND; + let mut seconds = (position as gst::ClockTime) / gst::SECOND; let mut minutes = seconds / 60; let hours = minutes / 60;