From b8b0f9c36e6612f6fcb71a61ae4411556869c8f1 Mon Sep 17 00:00:00 2001 From: Paul Lietar Date: Sat, 23 Apr 2016 00:09:19 +0100 Subject: [PATCH] Fix seconds to milliseconds conversion in vorbis_time_tell_ms. --- src/player.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.rs b/src/player.rs index 781c3b4c..48becb9b 100644 --- a/src/player.rs +++ b/src/player.rs @@ -19,7 +19,7 @@ fn vorbis_time_seek_ms(decoder: &mut vorbis::Decoder, ms: i64) -> Result<( #[cfg(not(feature = "with-tremor"))] fn vorbis_time_tell_ms(decoder: &mut vorbis::Decoder) -> Result 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")]