mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fix seconds to milliseconds conversion in vorbis_time_tell_ms.
This commit is contained in:
parent
c0f9e40756
commit
b8b0f9c36e
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ fn vorbis_time_seek_ms<R>(decoder: &mut vorbis::Decoder<R>, ms: i64) -> Result<(
|
||||||
|
|
||||||
#[cfg(not(feature = "with-tremor"))]
|
#[cfg(not(feature = "with-tremor"))]
|
||||||
fn vorbis_time_tell_ms<R>(decoder: &mut vorbis::Decoder<R>) -> Result<i64, vorbis::VorbisError> where R: Read + Seek {
|
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")]
|
#[cfg(feature = "with-tremor")]
|
||||||
|
|
Loading…
Reference in a new issue