Fix MPRIS progress time unit

MPRIS expects time in micro, not milli seconds.
This commit is contained in:
KoffeinFlummi
2019-03-17 04:30:45 +01:00
parent 5a85619105
commit fb83746476

View File

@@ -202,7 +202,7 @@ fn run_dbus_server(spotify: Arc<Spotify>, queue: Arc<Queue>, rx: mpsc::Receiver<
f.property::<i64, _>("Position", ())
.access(Access::Read)
.on_get(move |iter, _| {
iter.append(progress.as_secs() as i64 * 1000);
iter.append(progress.as_secs() as i64 * 1_000_000);
Ok(())
})
};