Commit 0e18b73b authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Instance: Adapt mediaDiscoverers method to recent libvlc changes

parent 404379fb
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment