Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Leonhard Saam
libvlcpp
Commits
98fafd88
Commit
98fafd88
authored
Feb 18, 2021
by
Leonhard Saam
Committed by
Hugo Beauzée-Luyssen
Feb 18, 2021
Browse files
MediaList: Added missing constructor for an empty MediaList
parent
4ac2be9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlcpp/MediaList.hpp
View file @
98fafd88
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment