Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
402b07d5 by Steve Lhomme at 2022-06-30T10:52:14+00:00
network: don't use net_errno with poll()

The Win32 implementation of poll() sets errno, not net_errno.

- - - - -


1 changed file:

- src/network/io.c


Changes:

=====================================
src/network/io.c
=====================================
@@ -325,7 +325,7 @@ int net_Accept(vlc_object_t *obj, int *fds)
     {
         while (poll(ufd, n, -1) == -1)
         {
-            if (net_errno != EINTR)
+            if (errno != EINTR)
             {
                 msg_Err(obj, "poll error: %s", vlc_strerror_c(net_errno));
                 return -1;



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/402b07d5bc407b5bcb760973d307e96e9c64185a

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/402b07d5bc407b5bcb760973d307e96e9c64185a
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to