]> git.sesse.net Git - vlc/blobdiff - src/interface/interface.c
De-inhibit cancellation in interface threads
[vlc] / src / interface / interface.c
index 2b412d67601b0822b3f6c8670d32b8f21d229af0..55559fd4c69bcb3f3aca1d54cd652c1b72bffd1a 100644 (file)
@@ -221,12 +221,12 @@ static void* RunInterface( vlc_object_t *p_this )
     var_Change( p_intf, "intf-add", VLC_VAR_ADDCHOICE, &val, &text );
 
     var_AddCallback( p_intf, "intf-add", AddIntfCallback, NULL );
+    vlc_restorecancel (canc);
 
     /* Give control to the interface */
     if( p_intf->pf_run )
         p_intf->pf_run( p_intf );
 
-    vlc_restorecancel (canc);
     return NULL;
 }