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

MediaLibrary: Remove now unneeded libvlcpp workaround

parent 42a68469
......@@ -82,13 +82,6 @@ MediaLibrary::MediaLibrary()
MediaLibrary::~MediaLibrary()
{
// The log callback isn't shared by all VLC::Instance's, yet since
// they all share a single libvlc_instance_t, any VLC::Instance still alive
// with a log callback set will try to invoke it.
// We manually call logUnset to ensure that the callback that is about to be deleted will
// not be called anymore.
if ( m_vlcInstance.isValid() )
m_vlcInstance.logUnset();
// Explicitely stop the discoverer, to avoid it writting while tearing down.
m_discoverer->stop();
Media::clear();
......
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