[vlc-commits] [Git][videolan/libvlcpp][master] 2 commits: CI: Bump 4.0 image

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Sat Dec 11 15:48:45 UTC 2021



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


Commits:
2a730841 by Hugo Beauzée-Luyssen at 2021-12-11T16:45:31+01:00
CI: Bump 4.0 image

- - - - -
aca01ee3 by Hugo Beauzée-Luyssen at 2021-12-11T16:45:31+01:00
Media: Expose new libvlc_media_get_stat API

- - - - -


2 changed files:

- .gitlab-ci.yml
- 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:20201119105540
+  VLC40_IMAGE: registry.videolan.org/libvlcpp-unstable:20211211153737
 
 .common_build:
   rules:


=====================================
vlcpp/Media.hpp
=====================================
@@ -807,6 +807,18 @@ public:
         libvlc_media_thumbnail_request_destroy( request );
     }
 
+    enum class Stat : uint8_t
+    {
+        Mtime = libvlc_media_stat_mtime,
+        Size = libvlc_media_stat_size,
+    };
+
+    std::pair<bool, uint64_t> stat( Stat s )
+    {
+        uint64_t value = 0;
+        auto res = libvlc_media_get_stat( *this, static_cast<uint8_t>( s ), &value ) == 1;
+        return std::make_pair( res, value );
+    }
 #endif
 
 



View it on GitLab: https://code.videolan.org/videolan/libvlcpp/-/compare/b0e7d093a89eae248ff17cf80e0fd8feb92089c0...aca01ee33ad03d30b4ac42094749ccbcf76f35c7

-- 
View it on GitLab: https://code.videolan.org/videolan/libvlcpp/-/compare/b0e7d093a89eae248ff17cf80e0fd8feb92089c0...aca01ee33ad03d30b4ac42094749ccbcf76f35c7
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list