udp: Don't set errno to EAFNOSUPPORT unconditionally
authorLRN <lrn1986@gmail.com>
Fri, 27 Feb 2009 19:24:53 +0000 (20:24 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 27 Feb 2009 19:24:53 +0000 (20:24 +0100)
Fixes bug #573342.

gst/udp/gstudpnetutils.c

index a1588ca..0726850 100644 (file)
@@ -149,7 +149,11 @@ gst_udp_set_loop_ttl (int sockfd, gboolean loop, int ttl)
       break;
     }
     default:
+#ifdef G_OS_WIN32
+      WSASetLastError (WSAEAFNOSUPPORT);
+#else
       errno = EAFNOSUPPORT;
+#endif
   }
 #endif
   return ret;