diff --git a/src/ui/window.rs b/src/ui/window.rs index 590ebc4..997c007 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -382,11 +382,16 @@ mod imp { } .unwrap(); - assert_eq!( - duration.map(|f| f as i64), - self.song().as_ref().map(crate::PlaybinSong::duration), - "mpv duration doesn not match subsonic duration (this should probably be a warn)" - ); + { + let left = duration.map(|f| f as i64); + let right = self.song().as_ref().map(crate::PlaybinSong::duration); + if left != right { + event!( + Level::WARN, + "mpv duration {left:?} doesn not match subsonic duration {right:?}" + ); + } + } duration.unwrap_or(0.0) // placeholder }