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

Fix inverted logic

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