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

Media: Do not return a pointer when duplicating

parent 0a861f53
......@@ -226,10 +226,10 @@ public:
/**
* Duplicate a media descriptor object.
*/
MediaPtr duplicate()
Media duplicate()
{
auto obj = libvlc_media_duplicate(*this);
return std::make_shared<Media>( obj, false );
return Media( obj, false );
}
/**
......
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