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

Hugo Beauzée-Luyssen gitlab at videolan.org
Thu Nov 19 12:31:39 CET 2020



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


Commits:
983a8a2a by Hugo Beauzée-Luyssen at 2020-11-19T12:06:00+01:00
CI: Bump unstable image

With the new attached image callback

- - - - -
ac373bfe by Hugo Beauzée-Luyssen at 2020-11-19T12:06:00+01:00
EventManager: Expose libvlc_MediaAttachedThumbnailsFound

- - - - -


2 changed files:

- .gitlab-ci.yml
- vlcpp/EventManager.hpp


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -1,6 +1,6 @@
 variables:
   VLC30_IMAGE: registry.videolan.org/medialibrary:20201009131431
-  VLC40_IMAGE: registry.videolan.org/libvlcpp-unstable:20201106140307
+  VLC40_IMAGE: registry.videolan.org/libvlcpp-unstable:20201119105540
 
 .common_build:
   rules:


=====================================
vlcpp/EventManager.hpp
=====================================
@@ -414,6 +414,23 @@ class MediaEventManager : public EventManager
                     (*callback)( nullptr );
             });
         }
+
+        template <typename Func>
+        RegisteredEvent onAttachedThumbnailsFound( Func&& f )
+        {
+            EXPECT_SIGNATURE(void( const std::vector<Picture>& ) );
+            return handle(libvlc_MediaAttachedThumbnailsFound, std::forward<Func>( f ),
+                          []( const libvlc_event_t* e, void* data ) {
+                auto callback = static_cast<DecayPtr<Func>>(data);
+                std::vector<Picture> pictures;
+                auto picList = e->u.media_attached_thumbnails_found.thumbnails;
+                auto nbPictures = libvlc_picture_list_count( picList );
+                pictures.reserve( nbPictures );
+                for ( auto i = 0u; i < nbPictures; ++i )
+                    pictures.emplace_back( libvlc_picture_list_at( picList, i ) );
+                (*callback)( pictures );
+            });
+        }
 #endif
 
 };



View it on GitLab: https://code.videolan.org/videolan/libvlcpp/-/compare/a9c0f04a0403965e2b907d90ae75733a7fec57b2...ac373bfe8a2bd2beee8b0c16d316cbe6735a2554

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




More information about the vlc-commits mailing list