]> git.sesse.net Git - vlc/blobdiff - modules/visualization/goom.c
Plugins: push cancellation down
[vlc] / modules / visualization / goom.c
index 6827a2c995134bb9d41e55e5f52fe2da1feaa044..8dc2f03e0d24cbc9ba744cd56121caf82bf6e530 100644 (file)
@@ -325,6 +325,7 @@ static void* Thread( vlc_object_t *p_this )
     int16_t p_data[2][512];
     int i_data = 0, i_count = 0;
     PluginInfo *p_plugin_info;
+    int canc = vlc_savecancel ();
 
     var_Get( p_this, "goom-width", &width );
     var_Get( p_this, "goom-height", &height );
@@ -375,6 +376,7 @@ static void* Thread( vlc_object_t *p_this )
     }
 
     goom_close( p_plugin_info );
+    vlc_restorecancel (canc);
     return NULL;
 }