[vlc-commits] [Git][videolan/libvlcpp][master] 3 commits: Media: Remove media states bindings in 4.0
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Wed Mar 16 12:58:18 UTC 2022
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / libvlcpp
Commits:
38a18211 by Hugo Beauzée-Luyssen at 2022-03-16T13:37:46+01:00
Media: Remove media states bindings in 4.0
- - - - -
cdbae9df by Hugo Beauzée-Luyssen at 2022-03-16T13:38:01+01:00
EventManager: Remove onStateChange event
- - - - -
acb78a24 by Hugo Beauzée-Luyssen at 2022-03-16T13:57:17+01:00
CI: Bump unstable image
- - - - -
3 changed files:
- .gitlab-ci.yml
- vlcpp/EventManager.hpp
- vlcpp/Media.hpp
Changes:
=====================================
.gitlab-ci.yml
=====================================
@@ -1,6 +1,6 @@
variables:
VLC30_IMAGE: registry.videolan.org/medialibrary:20201009131431
- VLC40_IMAGE: registry.videolan.org/libvlcpp-unstable:20220314072210
+ VLC40_IMAGE: registry.videolan.org/libvlcpp-unstable:20220316125112
.common_build:
rules:
=====================================
vlcpp/EventManager.hpp
=====================================
@@ -355,7 +355,6 @@ 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
@@ -372,6 +371,7 @@ class MediaEventManager : public EventManager
(*callback)( e->u.media_state_changed.new_state );
});
}
+#endif
/**
* \brief onSubItemTreeAdded Registers an event called when all subitem have been added.
=====================================
vlcpp/Media.hpp
=====================================
@@ -470,6 +470,7 @@ public:
return libvlc_media_save_meta(*this) != 0;
}
+#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
/**
* Get current state of media descriptor object. Possible media states
* are defined in libvlc_structures.c ( libvlc_NothingSpecial=0,
@@ -484,7 +485,7 @@ public:
{
return libvlc_media_get_state(*this);
}
-
+#endif
/**
* Get the current statistics about the media
*
View it on GitLab: https://code.videolan.org/videolan/libvlcpp/-/compare/3f6cc938c237bd3be79e66bbe8400f8b62a7ad50...acb78a24d95029f7b4a5e5e68cbf464bbc76c63d
--
View it on GitLab: https://code.videolan.org/videolan/libvlcpp/-/compare/3f6cc938c237bd3be79e66bbe8400f8b62a7ad50...acb78a24d95029f7b4a5e5e68cbf464bbc76c63d
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list