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

MediaPlayer: Allow constructing a null instance

parent 3d565410
......@@ -31,7 +31,7 @@ namespace VLC
{
template < typename T >
class Internal
class Internal
{
public:
typedef T* InternalPtr;
......
......@@ -28,6 +28,11 @@
namespace VLC
{
MediaPlayer::MediaPlayer()
: Internal( NULL )
{
}
MediaPlayer::MediaPlayer(const MediaPlayer& another)
: Internal( another )
{
......
......@@ -42,6 +42,7 @@ class Media;
class VLCPP_API MediaPlayer : public Internal<libvlc_media_player_t>
{
public:
MediaPlayer();
/**
* Copy libvlc_media_player_t from another to new MediaPlayer object.
* \param another existing MediaPlayer
......
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