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
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to