Explorar o código

Fix seconds to milliseconds conversion in vorbis_time_tell_ms.

Paul Lietar %!s(int64=9) %!d(string=hai) anos
pai
achega
b8b0f9c36e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/player.rs

+ 1 - 1
src/player.rs

@@ -19,7 +19,7 @@ fn vorbis_time_seek_ms<R>(decoder: &mut vorbis::Decoder<R>, ms: i64) -> Result<(
 
 #[cfg(not(feature = "with-tremor"))]
 fn vorbis_time_tell_ms<R>(decoder: &mut vorbis::Decoder<R>) -> Result<i64, vorbis::VorbisError> where R: Read + Seek {
-    decoder.time_tell().map(|t| (t / 1000f64) as i64)
+    decoder.time_tell().map(|t| (t * 1000f64) as i64)
 }
 
 #[cfg(feature = "with-tremor")]