]> git.sesse.net Git - vlc/blobdiff - modules/stream_out/transcode.c
Plugins: push cancellation down
[vlc] / modules / stream_out / transcode.c
index 1c417c80d197cac3ee08f10a7d60ef49ece6b6f1..55684bf65d5f52b6fe9fae4a98cfb1fc565f672c 100644 (file)
@@ -2102,6 +2102,7 @@ static void* EncoderThread( vlc_object_t* p_this )
     sout_stream_sys_t *p_sys = (sout_stream_sys_t*)p_this;
     sout_stream_id_t *id = p_sys->id_video;
     picture_t *p_pic;
+    int canc = vlc_savecancel ();
 
     while( vlc_object_alive (p_sys) && !p_sys->b_error )
     {
@@ -2142,6 +2143,7 @@ static void* EncoderThread( vlc_object_t* p_this )
     }
     block_ChainRelease( p_sys->p_buffers );
 
+    vlc_restorecancel (canc);
     return NULL;
 }