mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
udp: Don't set errno to EAFNOSUPPORT unconditionally
Fixes bug #573342.
This commit is contained in:
parent
80510aeee7
commit
5d9c947f92
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue