Commit 9452abc2 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf Committed by Hugo Beauzée-Luyssen

Require libVLC 3.0 for MediaListEndReached

Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent faa1d63e
...@@ -871,11 +871,13 @@ class MediaListEventManager : public EventManager ...@@ -871,11 +871,13 @@ class MediaListEventManager : public EventManager
}); });
} }
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(3, 0, 0, 0)
template <typename Func> template <typename Func>
RegisteredEvent onEndReached( Func&& f ) RegisteredEvent onEndReached( Func&& f )
{ {
return handle( libvlc_MediaListEndReached, std::forward<Func>( f ) ); return handle( libvlc_MediaListEndReached, std::forward<Func>( f ) );
} }
#endif
}; };
/** /**
......
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