After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 573342 - Unconditioned EAFNOSUPPORT in gstudpnetutils.c
Unconditioned EAFNOSUPPORT in gstudpnetutils.c
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Windows
: Normal normal
: 0.10.15
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-02-27 01:56 UTC by LRN
Modified: 2009-02-27 19:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description LRN 2009-02-27 01:56:16 UTC
diff --git a/gst/udp/gstudpnetutils.c b/gst/udp/gstudpnetutils.c
index b1f864e..513bbba 100644
--- a/gst/udp/gstudpnetutils.c
+++ b/gst/udp/gstudpnetutils.c
@@ -154,7 +154,12 @@ gst_udp_set_loop_ttl (int sockfd, gboolean loop, int ttl)
       break;
     }
     default:
+#ifdef G_OS_WIN32
+      WSASetLastError (WSAEAFNOSUPPORT);
+#else
       errno = EAFNOSUPPORT;
+#endif
+
   }
   return ret;
 }
Comment 1 Sebastian Dröge (slomo) 2009-02-27 19:39:09 UTC
commit 5d9c947f923dc2f06020c2aaa0898855692dc2a1
Author: LRN <lrn1986@gmail.com>
Date:   Fri Feb 27 20:24:53 2009 +0100

    udp: Don't set errno to EAFNOSUPPORT unconditionally
    
    Fixes bug #573342.
Comment 2 Sebastian Dröge (slomo) 2009-02-27 19:42:06 UTC
Btw, this code is not actually used and #if 0'd ;)