diff --git a/src/mixer.rs b/src/mixer.rs index 51cb73cb..4f3241e8 100644 --- a/src/mixer.rs +++ b/src/mixer.rs @@ -110,35 +110,6 @@ impl Source for MixerSource { Err(SeekError::NotSupported { underlying_source: std::any::type_name::(), }) - - // uncomment when #510 is implemented (query position of playback) - - // let mut org_positions = Vec::with_capacity(self.current_sources.len()); - // let mut encounterd_err = None; - // - // for source in &mut self.current_sources { - // let pos = /* source.playback_pos() */ todo!(); - // if let Err(e) = source.try_seek(pos) { - // encounterd_err = Some(e); - // break; - // } else { - // // store pos in case we need to roll back - // org_positions.push(pos); - // } - // } - // - // if let Some(e) = encounterd_err { - // // rollback seeks that happend before err - // for (pos, source) in org_positions - // .into_iter() - // .zip(self.current_sources.iter_mut()) - // { - // source.try_seek(pos)?; - // } - // Err(e) - // } else { - // Ok(()) - // } } } diff --git a/src/source/mix.rs b/src/source/mix.rs index c5fedfb6..3778d8c5 100644 --- a/src/source/mix.rs +++ b/src/source/mix.rs @@ -117,18 +117,5 @@ where Err(SeekError::NotSupported { underlying_source: std::any::type_name::(), }) - - // uncomment when #510 is implemented (query position of playback) - // TODO use source_intact to check if rollback makes sense - - // let org_pos = self.input1.playback_pos(); - // self.input1.try_seek(pos)?; - // - // let res = self.input2.try_seek(pos); - // if res.is_err() { // rollback seek in input1 - // self.input1.try_seek(org_pos)?; - // } - // - // res } }