From 26bfd5b98c48ec37e897c6aa06d288891600a61d Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Sat, 19 Dec 2020 12:53:04 +0100 Subject: [PATCH] video/time_code_interval: Ord cmp minutes to other.minutes, not hours Same mistake as the previous commit. Clipppy didn't find this one though :) --- gstreamer-video/src/video_time_code_interval.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gstreamer-video/src/video_time_code_interval.rs b/gstreamer-video/src/video_time_code_interval.rs index 66fa19350..0c1eef8d5 100644 --- a/gstreamer-video/src/video_time_code_interval.rs +++ b/gstreamer-video/src/video_time_code_interval.rs @@ -100,7 +100,7 @@ impl Ord for VideoTimeCodeInterval { self.0 .hours .cmp(&other.0.hours) - .then_with(|| self.0.minutes.cmp(&other.0.hours)) + .then_with(|| self.0.minutes.cmp(&other.0.minutes)) .then_with(|| self.0.seconds.cmp(&other.0.seconds)) .then_with(|| self.0.frames.cmp(&other.0.frames)) }