We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5761cb commit 5ebd0aeCopy full SHA for 5ebd0ae
src/platform/macos/mod.rs
@@ -230,11 +230,10 @@ unsafe fn attach_command_handlers(handler: Arc<dyn Fn(MediaControlEvent)>) {
230
let handler = handler.clone();
231
// event of type MPChangePlaybackPositionCommandEvent
232
move |event: id| -> NSInteger {
233
- let position = event
+ let position = *event
234
.as_ref()
235
.unwrap()
236
- .get_ivar::<f64>("_positionTime")
237
- .clone();
+ .get_ivar::<f64>("_positionTime");
238
(handler)(MediaControlEvent::SetPosition(MediaPosition(
239
Duration::from_secs_f64(position),
240
)));
0 commit comments