Fix examples build again

This commit is contained in:
Sebastian Dröge 2017-08-29 11:56:30 +03:00
parent 8013169e09
commit 58998af124

View file

@ -62,7 +62,7 @@ fn create_ui(app: &gtk::Application) {
let position = pipeline.query_position(gst::Format::Time); let position = pipeline.query_position(gst::Format::Time);
if let Some(position) = position { 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 mut minutes = seconds / 60;
let hours = minutes / 60; let hours = minutes / 60;