Commit 2930f947 authored by Cyril Mathé's avatar Cyril Mathé Committed by Rémi Denis-Courmont

Mozilla-plugin: Fix a crash when exiting

Signed-off-by: 's avatarJean-Paul Saman <jean-paul.saman@m2x.nl>
(cherry picked from commit 2c1ccdbdd8070a7f0881619be181b9a2906a7dd8)
parent fcf756af
......@@ -341,6 +341,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;
......
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