Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / libvlcpp


Commits:
4ac2be9c by Hugo Beauzée-Luyssen at 2021-01-30T18:55:47+01:00
EventManager: Don't expose onFreed event starting from 4.0

- - - - -


1 changed file:

- vlcpp/EventManager.hpp


Changes:

=====================================
vlcpp/EventManager.hpp
=====================================
@@ -334,6 +334,7 @@ class MediaEventManager : public EventManager
 #endif
         }
 
+#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
         /**
          * \brief onFreed Registers an event called when the media reaches a 
refcount of 0
          * \param f A std::function<void(MediaPtr)> (or an equivalent Callable 
type)
@@ -354,6 +355,7 @@ class MediaEventManager : public EventManager
                 (*callback)( media != nullptr ? std::make_shared<Media>( 
media, true ) : nullptr );
             });
         }
+#endif
 
         /**
          * \brief onStateChanged Registers an event called when the Media 
state changes



View it on GitLab: 
https://code.videolan.org/videolan/libvlcpp/-/commit/4ac2be9c5a9ae83dfba5fa605400491310ca2279

-- 
View it on GitLab: 
https://code.videolan.org/videolan/libvlcpp/-/commit/4ac2be9c5a9ae83dfba5fa605400491310ca2279
You're receiving this email because of your account on code.videolan.org.


_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to