Commit 4ac2be9c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

EventManager: Don't expose onFreed event starting from 4.0

parent ac373bfe
...@@ -334,6 +334,7 @@ class MediaEventManager : public EventManager ...@@ -334,6 +334,7 @@ class MediaEventManager : public EventManager
#endif #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 * \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) * \param f A std::function<void(MediaPtr)> (or an equivalent Callable type)
...@@ -354,6 +355,7 @@ class MediaEventManager : public EventManager ...@@ -354,6 +355,7 @@ class MediaEventManager : public EventManager
(*callback)( media != nullptr ? std::make_shared<Media>( media, true ) : nullptr ); (*callback)( media != nullptr ? std::make_shared<Media>( media, true ) : nullptr );
}); });
} }
#endif
/** /**
* \brief onStateChanged Registers an event called when the Media state changes * \brief onStateChanged Registers an event called when the Media state changes
......
Supports Markdown
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