Skip to content
Snippets Groups Projects
Commit 70a5235e authored by Martin T. H. Sandsmark's avatar Martin T. H. Sandsmark Committed by Jean-Baptiste Kempf
Browse files

fix crash when switching phonon backends on the fly, remember to stop libvlc...

fix crash when switching phonon backends on the fly, remember to stop libvlc media player before releasing it

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 946c16ca
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,9 @@ VLCMediaObject::VLCMediaObject(QObject * parent)
VLCMediaObject::~VLCMediaObject()
{
// unloadMedia();
unloadMedia();
libvlc_media_player_stop(p_vlc_media_player, vlc_exception); // ensure that we are stopped
libvlc_media_player_release(p_vlc_media_player);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment