[vlc-devel] commit: Mozilla-plugin: Fix a crash when exiting ( Cyril Mathé )

git version control git at videolan.org
Mon Jul 6 00:30:34 CEST 2009


vlc | branch: 1.0-bugfix | Cyril Mathé <cmathe at actech-innovation.com> | Thu Jul  2 15:03:58 2009 +0200| [2c1ccdbdd8070a7f0881619be181b9a2906a7dd8] | committer: Jean-Paul Saman 

Mozilla-plugin: Fix a crash when exiting

Signed-off-by: Jean-Paul Saman <jean-paul.saman at m2x.nl>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c1ccdbdd8070a7f0881619be181b9a2906a7dd8
---

 projects/mozilla/vlcshell.cpp |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/projects/mozilla/vlcshell.cpp b/projects/mozilla/vlcshell.cpp
index 35aa571..4399b54 100644
--- a/projects/mozilla/vlcshell.cpp
+++ b/projects/mozilla/vlcshell.cpp
@@ -328,6 +328,16 @@ NPError NPP_Destroy( NPP instance, NPSavedData** save )
     }
 #endif
 
+    libvlc_exception_t ex;
+    libvlc_exception_init(&ex);
+    int val = p_plugin->playlist_isplaying(&ex);
+    libvlc_exception_clear(&ex);
+    if(val)
+    {
+        p_plugin->playlist_stop(&ex);
+        libvlc_exception_clear(&ex);
+    }
+
     delete p_plugin;
 
     return NPERR_NO_ERROR;




More information about the vlc-devel mailing list