]> git.sesse.net Git - vlc/blobdiff - modules/access/rtmp/access.c
Plugins: push cancellation down
[vlc] / modules / access / rtmp / access.c
index c0bf34706f7bb6802dbdc5feb4fbc7e16a29dae2..bee0c1b25e6768b00dc1feaf517d72af90dc3ece 100644 (file)
@@ -507,6 +507,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 );
 
@@ -543,5 +544,6 @@ static void* ThreadControl( vlc_object_t *p_this )
             block_FifoWake( p_thread->p_fifo_input );
         }
     }
+    vlc_restorecancel (canc);
     return NULL;
 }