Skip to content

Commit

Permalink
use From<f64> instead of custom time_from_duration
Browse files Browse the repository at this point in the history
Co-authored-by: naglis <[email protected]>
  • Loading branch information
dvdsk and naglis authored Oct 13, 2023
1 parent 21d2eff commit 7220038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decoder/symphonia.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ impl Source for SymphoniaDecoder {
let time = self.total_duration.expect("if guarentees this is Some");
skip_back_a_tiny_bit(time) // some decoders can only seek to just before the end
} else {
time_from_duration(pos)
pos.as_secs_f64().into()
};

self.format.seek(
Expand Down

0 comments on commit 7220038

Please sign in to comment.