]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/waveout.c
Plugins: push cancellation down
[vlc] / modules / audio_output / waveout.c
index 7b48bf451aa4aeffa2f7eb7212bb677c6c5ba9ac..29610f2a03dcc18764f337bf22ec88ca6550b104 100644 (file)
@@ -982,6 +982,7 @@ static void* WaveOutThread( vlc_object_t *p_this )
     bool b_sleek;
     mtime_t next_date;
     uint32_t i_buffer_length = 64;
+    int canc = vlc_savecancel ();
 
     /* We don't want any resampling when using S/PDIF */
     b_sleek = p_aout->output.output.i_format == VLC_FOURCC('s','p','d','i');
@@ -1108,6 +1109,7 @@ static void* WaveOutThread( vlc_object_t *p_this )
     }
 
 #undef waveout_warn
+    vlc_restorecancel (canc);
     return NULL;
 }