Commit 98fafd88 authored by Leonhard Saam's avatar Leonhard Saam Committed by Hugo Beauzée-Luyssen
Browse files

MediaList: Added missing constructor for an empty MediaList

parent 4ac2be9c
......@@ -79,16 +79,10 @@ public:
*
* \param p_mlib media library object
*/
MediaList(MediaLibrary& mlib )
MediaList(MediaLibrary& mlib)
: Internal{ libvlc_media_library_media_list( getInternalPtr<libvlc_media_library_t>( mlib ) ), libvlc_media_list_release }
{
}
#endif
MediaList( Internal::InternalPtr mediaList )
: Internal{ mediaList, libvlc_media_list_release }
{
}
/**
* Create an empty VLC MediaList instance.
......@@ -97,6 +91,34 @@ public:
*/
MediaList() = default;
/**
* Create an empty media list.
*
* \param p_instance libvlc instance
*/
MediaList(Instance& instance)
: Internal{ libvlc_media_list_new( getInternalPtr<libvlc_instance_t>( instance ) ),
libvlc_media_list_release }
{
}
#else
/**
* Create an empty media list.
*
* \param p_instance libvlc instance
*/
MediaList()
: Internal{ libvlc_media_list_new(),
libvlc_media_list_release }
{
}
#endif
MediaList( Internal::InternalPtr mediaList )
: Internal{ mediaList, libvlc_media_list_release }
{
}
/**
* Associate media instance with this media list instance. If another
* media instance was present it will be released. The
......
Supports Markdown
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