From 6e119b7256b262153d8e7b4a37decbabf0dad8ff 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 7789708a1..c881637a5 100644 --- a/gstreamer-video/src/video_time_code_interval.rs +++ b/gstreamer-video/src/video_time_code_interval.rs @@ -84,7 +84,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)) }