mirror of
https://github.com/RustAudio/rodio
synced 2024-11-10 06:04:16 +00:00
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:
parent
bf586a60cd
commit
b56de697c1
1 changed files with 0 additions and 2 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue