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;