Преглед на файлове

Fix seconds to milliseconds conversion in vorbis_time_tell_ms.

Paul Lietar преди 9 години
родител
ревизия
b8b0f9c36e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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")]