Skip to content

Commit

Permalink
Fix input source timestamp pre-input argument decimal formatting (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
DasEtwas authored Mar 13, 2021
1 parent b9a926c commit c488ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input/restartable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ where
.unwrap_or_else(|_e| (false, Default::default()));
let stereo_val = if is_stereo.0 { "2" } else { "1" };

let ts = format!("{}.{}", time.as_secs(), time.subsec_millis());
let ts = format!("{:.3}", time.as_secs_f64());
_ffmpeg_optioned(
self.path.as_ref(),
&["-ss", &ts],
Expand Down Expand Up @@ -230,7 +230,7 @@ where
{
async fn call_restart(&mut self, time: Option<Duration>) -> Result<Input> {
if let Some(time) = time {
let ts = format!("{}.{}", time.as_secs(), time.subsec_millis());
let ts = format!("{:.3}", time.as_secs_f64());

_ytdl(self.uri.as_ref(), &["-ss", &ts]).await
} else {
Expand Down

0 comments on commit c488ce3

Please sign in to comment.