Commit 404379fb authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Rename some types to follow recent libvlc changes

parent e13b1c43
......@@ -519,15 +519,15 @@ public:
*/
std::vector<MediaDiscoverer::Description> mediaDiscoverers(MediaDiscoverer::Category category)
{
libvlc_media_discoverer_description** pp_descs;
auto nbSd = libvlc_media_discoverer_list_get( *this, static_cast<libvlc_media_discoverer_category>( category ),
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 )
return {};
auto releaser = [nbSd](libvlc_media_discoverer_description** ptr) {
auto releaser = [nbSd](libvlc_media_discoverer_description_t** ptr) {
libvlc_media_discoverer_list_release( ptr, nbSd );
};
std::unique_ptr<libvlc_media_discoverer_description*, decltype(releaser)> descPtr( pp_descs, releaser );
std::unique_ptr<libvlc_media_discoverer_description_t*, decltype(releaser)> descPtr( pp_descs, releaser );
std::vector<MediaDiscoverer::Description> res;
res.reserve( nbSd );
for ( auto i = 0u; i < nbSd; ++i )
......
......@@ -53,7 +53,7 @@ public:
class Description
{
public:
explicit Description( const std::string& name, const std::string& longName, libvlc_media_discoverer_category cat )
explicit Description( const std::string& name, const std::string& longName, libvlc_media_discoverer_category_t cat )
: m_name( name )
, m_longName( longName )
, m_category( static_cast<Category>( cat ) )
......
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