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

EventManager: Fix onSubItemTreeAdded event type

parent 8e8c1672
...@@ -301,7 +301,7 @@ class MediaEventManager : public EventManager ...@@ -301,7 +301,7 @@ class MediaEventManager : public EventManager
RegisteredEvent onSubItemTreeAdded( Func&& f) RegisteredEvent onSubItemTreeAdded( Func&& f)
{ {
EXPECT_SIGNATURE(void(MediaPtr)); EXPECT_SIGNATURE(void(MediaPtr));
return handle(libvlc_MediaSubItemAdded, std::forward<Func>( f ), [](const libvlc_event_t* e, void* data) return handle(libvlc_MediaSubItemTreeAdded, std::forward<Func>( f ), [](const libvlc_event_t* e, void* data)
{ {
auto callback = static_cast<DecayPtr<Func>>(data); auto callback = static_cast<DecayPtr<Func>>(data);
auto media = e->u.media_subitemtree_added.item; auto media = e->u.media_subitemtree_added.item;
......
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