We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent febf1b9 commit 419e215Copy full SHA for 419e215
src/status.rs
@@ -203,7 +203,12 @@ impl FromIter for Status {
203
.ok()
204
.map(|v| Duration::milliseconds((v * 1000.0) as i64))
205
}
206
- "duration" => result.duration = Some(Duration::seconds(try!(line.1.parse()))),
+ "duration" => {
207
+ result.duration = line.1
208
+ .parse::<f32>()
209
+ .ok()
210
+ .map(|v| Duration::milliseconds((v * 1000.0) as i64))
211
+ }
212
"bitrate" => result.bitrate = Some(try!(line.1.parse())),
213
"xfade" => result.crossfade = Some(Duration::seconds(try!(line.1.parse()))),
214
// "mixrampdb" => 0.0, //get_field!(map, "mixrampdb"),
0 commit comments