]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/events.c
Plugins: push cancellation down
[vlc] / modules / video_output / msw / events.c
index 4edb568c4921a0a9f7de83d98d64105455fa1006..28c4a9c2d5bc45f1b469387fc45c6fd2c413d033 100644 (file)
@@ -100,6 +100,7 @@ void* EventThread( vlc_object_t *p_this )
     vlc_value_t val;
     unsigned int i_width, i_height, i_x, i_y;
     HMODULE hkernel32;
+    int canc = vlc_savecancel ();
 
     /* Initialisation */
     p_event->p_vout->pf_control = Control;
@@ -376,6 +377,7 @@ void* EventThread( vlc_object_t *p_this )
     p_event->p_vout->p_sys->i_changes = 0;
 
     DirectXCloseWindow( p_event->p_vout );
+    vlc_restorecancel (canc);
     return NULL;
 }