Commit f52dc9fd authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Instance: Allow construction from an existing libvlc_instance_t

parent 98fafd88
......@@ -111,6 +111,19 @@ public:
{
}
/**
* \brief Instance Wraps an existing libvlc instance to be used with libvlcpp
* \param instance A libvlc_instance_t
*
* The instance will be held by the constructor, the caller can release it
* as soon at the instance is constructed.
*/
explicit Instance( libvlc_instance_t* instance )
: Internal{ instance, libvlc_release }
{
libvlc_retain( instance );
}
/**
* Create an empty VLC instance.
*
......
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