]> git.sesse.net Git - vlc/blobdiff - modules/access_output/udp.c
Simplify shutdown() portability
[vlc] / modules / access_output / udp.c
index e4f2f51ccb48430abdd1d188a4869ed933c4ee13..01f8ab82032656fa4672087a0588dddae8ee486a 100644 (file)
@@ -323,7 +323,7 @@ static int Open( vlc_object_t *p_this )
         }
     }
     p_sys->p_thread->i_handle = i_handle;
-    net_StopRecv( i_handle );
+    shutdown( i_handle, SHUT_RD );
 
 #ifdef UDPLITE_SEND_CSCOV
     if (proto == IPPROTO_UDPLITE)