]> git.sesse.net Git - vlc/blobdiff - modules/stream_out/rtp.c
Plugins: push cancellation down
[vlc] / modules / stream_out / rtp.c
index c7facb5a8adfe42d0f20c166045716adb6d533e1..3d11cea6864eb2f9e3b80c6c3af0c9f1945448ab 100644 (file)
@@ -1434,6 +1434,7 @@ static void* ThreadSend( vlc_object_t *p_this )
 {
     sout_stream_id_t *id = (sout_stream_id_t *)p_this;
     unsigned i_caching = id->i_caching;
+    int canc = vlc_savecancel ();
 
     while( vlc_object_alive (id) )
     {
@@ -1499,6 +1500,7 @@ static void* ThreadSend( vlc_object_t *p_this )
             rtp_add_sink( id, fd, true );
         }
     }
+    vlc_restorecancel (canc);
     return NULL;
 }