]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwidgets/wxwidgets.cpp
Plugins: push cancellation down
[vlc] / modules / gui / wxwidgets / wxwidgets.cpp
index 8da4253f2de24c7ca252cf0a80dc45c0e988cdaa..d45bee707fd084aa2b4c4caba49a49085bba570e 100644 (file)
@@ -299,6 +299,7 @@ static void* Init( vlc_object_t * p_this )
     static char  *p_args[] = { "" };
     int i_args = 1;
 #endif
+    int canc = vlc_savecancel ();
 
     /* Hack to pass the p_intf pointer to the new wxWidgets Instance object */
 #ifdef wxTheApp
@@ -321,6 +322,7 @@ static void* Init( vlc_object_t * p_this )
 #else
     wxEntry( i_args, p_args );
 #endif
+    vlc_restorecancel (canc);
     return NULL;
 }