From 092377878cced8cac62476f3323e864afae440c7 Mon Sep 17 00:00:00 2001 From: Alexandre Janniaux Date: Fri, 15 Nov 2019 18:42:27 +0100 Subject: [PATCH] media_player: fix missing dyn --- src/media_player.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/media_player.rs b/src/media_player.rs index 15aebf0..46b9d82 100644 --- a/src/media_player.rs +++ b/src/media_player.rs @@ -88,10 +88,10 @@ impl MediaPlayer { pub fn set_callbacks( &self, play: F, - pause: Option>, - resume: Option>, - flush: Option>, - drain: Option>) + pause: Option>, + resume: Option>, + flush: Option>, + drain: Option>) where F: Fn(*const c_void, u32, i64) + Send + 'static, { let flag_pause = pause.is_some(); @@ -326,11 +326,11 @@ impl Drop for MediaPlayer { // For audio_set_callbacks struct AudioCallbacksData { - play: Box, - pause: Option>, - resume: Option>, - flush: Option>, - drain: Option>, + play: Box, + pause: Option>, + resume: Option>, + flush: Option>, + drain: Option>, } unsafe extern "C" fn audio_cb_play(