]> git.sesse.net Git - vlc/blobdiff - modules/misc/gtk_main.c
Plugins: push cancellation down
[vlc] / modules / misc / gtk_main.c
index 7834352beb8c5bfe894722e9c7db39421e1a1df7..68a9c2848d36190d1d3f05a84cb5c4f27e69f369 100644 (file)
@@ -167,6 +167,7 @@ static void* GtkMain( vlc_object_t *p_this )
     static char **pp_args  = p_args;
 #endif
     static int    i_args   = 1;
+    int canc = vlc_savecancel ();
 
     /* FIXME: deprecated ? */
 #if defined(MODULE_NAME_IS_gtk2_main) || defined(MODULE_NAME_IS_gnome2_main)
@@ -197,5 +198,6 @@ static void* GtkMain( vlc_object_t *p_this )
     gtk_main();
 
     gdk_threads_leave();
+    vlc_restorecancel (canc);
     return NULL;
 }