]> git.sesse.net Git - vlc/commitdiff
fix crash when switching phonon backends on the fly, remember to stop libvlc media...
authorMartin T. H. Sandsmark <sandsmark@samfundet.no>
Thu, 14 Jan 2010 20:22:56 +0000 (21:22 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 15 Jan 2010 14:56:21 +0000 (15:56 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
bindings/phonon/vlc/vlcmediaobject.cpp

index 20972071429059ce6f8195e7abc4a8c1e229157b..4e06f358f8708e836091f861efff34945a87f9ee 100644 (file)
@@ -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);
 }