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

MediaDiscoverer: Fix inverted logic

parent b30956d4
......@@ -102,7 +102,7 @@ public:
*/
MediaDiscovererEventManager& eventManager()
{
if ( m_eventManager )
if ( m_eventManager == nullptr )
{
libvlc_event_manager_t* obj = libvlc_media_discoverer_event_manager( *this );
m_eventManager = std::make_shared<MediaDiscovererEventManager>( obj );
......
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