[vlc-commits] [Git][videolan/libvlcpp][master] EventManager: Don't expose onFreed event starting from 4.0
Hugo Beauzée-Luyssen
gitlab at videolan.org
Sat Jan 30 17:58:43 UTC 2021
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.
More information about the vlc-commits
mailing list