]> git.sesse.net Git - vlc/blobdiff - modules/access_output/rtmp.c
Plugins: push cancellation down
[vlc] / modules / access_output / rtmp.c
index ebf7175ab6cf486e37fd3ab4014cde306387b35d..b6a2047529e3483b3721d4f243fe66bca959de2d 100644 (file)
@@ -383,6 +383,7 @@ static void* ThreadControl( vlc_object_t *p_this )
 {
     rtmp_control_thread_t *p_thread = (rtmp_control_thread_t *) p_this;
     rtmp_packet_t *rtmp_packet;
+    int canc = vlc_savecancel ();
 
     rtmp_init_handler( p_thread->rtmp_handler );
 
@@ -416,5 +417,6 @@ static void* ThreadControl( vlc_object_t *p_this )
             p_thread->b_die = 1;
         }
     }
+    vlc_restorecancel (canc);
     return NULL;
 }