Commit 54de149a authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

introduce globalaudiochannels and tear it down in backend dtor

parent d4a8ef83
......@@ -122,6 +122,8 @@ Backend::~Backend()
{
if (LibVLC::self)
delete LibVLC::self;
if (GlobalAudioChannels::self)
delete GlobalAudioChannels::self;
if (GlobalSubtitles::self)
delete GlobalSubtitles::self;
#ifdef PHONON_PULSESUPPORT
......
......@@ -264,6 +264,7 @@ protected:
template <typename D>
GlobalDescriptionContainer<D> *GlobalDescriptionContainer<D>::self = 0;
typedef GlobalDescriptionContainer<AudioChannelDescription> GlobalAudioChannels;
typedef GlobalDescriptionContainer<SubtitleDescription> GlobalSubtitles;
} // Namespace VLC
......
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