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

Fix inverted logic

parent 51d0208f
......@@ -231,7 +231,7 @@ public:
*/
MediaListEventManager& eventManager()
{
if ( m_eventManager )
if ( m_eventManager == nullptr )
{
libvlc_event_manager_t* obj = libvlc_media_list_event_manager( *this );
m_eventManager = std::make_shared<MediaListEventManager>( obj );
......
......@@ -73,7 +73,7 @@ public:
*/
MediaListPlayerEventManager& eventManager()
{
if ( m_eventManager )
if ( m_eventManager == nullptr )
{
libvlc_event_manager_t* obj = libvlc_media_list_player_event_manager(*this);
m_eventManager = std::make_shared<MediaListPlayerEventManager>( obj );
......
......@@ -133,7 +133,7 @@ public:
*/
MediaPlayerEventManager& eventManager()
{
if ( m_eventManager == NULL )
if ( m_eventManager == nullptr )
{
libvlc_event_manager_t* obj = libvlc_media_player_event_manager( *this );
m_eventManager = std::make_shared<MediaPlayerEventManager>( 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