Remove debug_assert which was triggering unnecessary panic

When playing an mp3 on Windows in debug mode, sometimes
self.next_frame() is not empty in SampleRateConverter, leading to a
panic

See issue: #229
This commit is contained in:
Gavyn Riebau 2020-05-20 13:21:29 +08:00 committed by est31
parent bf586a60cd
commit b56de697c1

View file

@ -188,8 +188,6 @@ where
if result.is_some() {
result
} else {
debug_assert!(self.next_frame.is_empty());
// draining `self.current_frame`
if !self.current_frame.is_empty() {
let r = Some(self.current_frame.remove(0));