]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/oss.c
Plugins: push cancellation down
[vlc] / modules / audio_output / oss.c
index 0f1377ea7b4c6a28428a74ba9024a0a633d98e8f..118cdc415bf1d488d2644aeac51d922d54d0efd1 100644 (file)
@@ -590,6 +590,7 @@ static void* OSSThread( vlc_object_t *p_this )
     aout_instance_t * p_aout = (aout_instance_t*)p_this;
     struct aout_sys_t * p_sys = p_aout->output.p_sys;
     mtime_t next_date = 0;
+    int canc = vlc_savecancel ();
 
     while ( vlc_object_alive (p_aout) )
     {
@@ -690,5 +691,6 @@ static void* OSSThread( vlc_object_t *p_this )
         }
     }
 
+    vlc_restorecancel (canc);
     return NULL;
 }