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

Media: Allow constructing a null instance

parent 6b06411a
......@@ -26,6 +26,11 @@
namespace VLC
{
Media::Media()
: Internal( NULL )
{
}
Media Media::fromPath(Instance& instance, const std::string& path)
{
InternalPtr ptr = libvlc_media_new_path( instance, path.c_str() );
......
......@@ -39,6 +39,7 @@ class EventManager;
class VLCPP_API Media : public Internal<libvlc_media_t>
{
public:
Media();
/**
* Create a media for a certain file path.
*
......
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