Fix MPRIS progress time unit
MPRIS expects time in micro, not milli seconds.
This commit is contained in:
@@ -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(())
|
||||
})
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user