Commit 70a5235e authored by Martin T. H. Sandsmark's avatar Martin T. H. Sandsmark Committed by Jean-Baptiste Kempf

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
......@@ -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);
}
......
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