Commit 3e4e6c7f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

EventManager: Fix MediaPlayer::onBuffering expected parameter

parent 620cafa3
......@@ -329,7 +329,12 @@ class MediaPlayerEventManager : public EventManager
template <typename Func>
RegisteredEvent onBuffering( Func&& f )
return handle(libvlc_MediaPlayerBuffering, std::forward<Func>( f ) );
return handle(libvlc_MediaPlayerBuffering, std::forward<Func>(f), [](const libvlc_event_t* e, void* data)
auto callback = static_cast<DecayPtr<Func>>( data );
(*callback)( e->u.media_player_buffering.new_cache );
template <typename Func>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment