]> git.sesse.net Git - vlc/blobdiff - modules/access_output/udp.c
modules: use vlc_object_alive()
[vlc] / modules / access_output / udp.c
index a470289558c7a15b6bece583e799f6cd622cee50..14da8aa41641c5bab890bbdb7651e03d2421df08 100644 (file)
@@ -444,7 +444,7 @@ static void ThreadWrite( vlc_object_t *p_this )
     mtime_t              i_to_send = p_thread->i_group;
     int                  i_dropped_packets = 0;
 
-    while( !p_thread->b_die )
+    while( vlc_object_alive (p_thread) )
     {
         block_t *p_pk;
         mtime_t       i_date, i_sent;