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

MediaLibrary: Doc + use bool instead of int

parent a7e73c6c
......@@ -36,7 +36,7 @@ public:
/**
* Create an new Media Library object
*
* \param p_instance the libvlc instance
* \param instance the libvlc instance
*/
MediaLibrary(Instance& instance)
: Internal{ libvlc_media_library_new( getInternalPtr<libvlc_instance_t>( instance ) ),
......@@ -63,12 +63,10 @@ public:
/**
* Load media library.
*
* \return 0 on success, -1 on error
*/
int load()
bool load()
{
return libvlc_media_library_load(*this);
return libvlc_media_library_load(*this) == 0;
}
};
......
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