mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
curl: fix compiler warning with setsockopt() on windows
The optval argument is of type const char * on windows. https://bugzilla.gnome.org/show_bug.cgi?id=685065
This commit is contained in:
parent
9a2735a063
commit
2c2d6b0753
1 changed files with 3 additions and 2 deletions
|
@ -1172,11 +1172,12 @@ gst_curl_base_sink_setup_dscp_unlocked (GstCurlBaseSink * sink)
|
|||
|
||||
switch (af) {
|
||||
case AF_INET:
|
||||
ret = setsockopt (sink->fd.fd, IPPROTO_IP, IP_TOS, &tos, sizeof (tos));
|
||||
ret = setsockopt (sink->fd.fd, IPPROTO_IP, IP_TOS, (void *) &tos,
|
||||
sizeof (tos));
|
||||
break;
|
||||
case AF_INET6:
|
||||
#ifdef IPV6_TCLASS
|
||||
ret = setsockopt (sink->fd.fd, IPPROTO_IPV6, IPV6_TCLASS, &tos,
|
||||
ret = setsockopt (sink->fd.fd, IPPROTO_IPV6, IPV6_TCLASS, (void *) &tos,
|
||||
sizeof (tos));
|
||||
break;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue