[vlc-commits] [Git][videolan/libvlcpp][master] Instance: Adapt mediaDiscoverers method to recent libvlc changes

Hugo Beauzée-Luyssen gitlab at videolan.org
Wed Jul 20 14:27:04 CEST 2016


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


Commits:
0e18b73b by Hugo Beauzée-Luyssen at 2016-07-20T14:26:27+02:00
Instance: Adapt mediaDiscoverers method to recent libvlc changes

- - - - -


1 changed file:

- vlcpp/Instance.hpp


Changes:

=====================================
vlcpp/Instance.hpp
=====================================
--- a/vlcpp/Instance.hpp
+++ b/vlcpp/Instance.hpp
@@ -522,7 +522,7 @@ public:
         libvlc_media_discoverer_description_t** pp_descs;
         auto nbSd = libvlc_media_discoverer_list_get( *this, static_cast<libvlc_media_discoverer_category_t>( category ),
                                                       &pp_descs );
-        if ( nbSd == 0 )
+        if ( nbSd <= 0 )
             return {};
         auto releaser = [nbSd](libvlc_media_discoverer_description_t** ptr) {
             libvlc_media_discoverer_list_release( ptr, nbSd );



View it on GitLab: https://code.videolan.org/videolan/libvlcpp/commit/0e18b73b6e4d02a6ab4d7ea8a10ca96e4af193bd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-commits/attachments/20160720/f078212e/attachment.html>


More information about the vlc-commits mailing list