mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
udp: fix compilation errors on non-windows.
This commit is contained in:
parent
7f980d28aa
commit
5b357ce22e
3 changed files with 5 additions and 5 deletions
|
@ -75,7 +75,7 @@ struct _GstMultiUDPSink {
|
|||
gint ttl_mc;
|
||||
gboolean loop;
|
||||
gint qos_dscp;
|
||||
ADDRESS_FAMILY ss_family;
|
||||
guint16 ss_family;
|
||||
};
|
||||
|
||||
struct _GstMultiUDPSinkClass {
|
||||
|
|
|
@ -117,7 +117,7 @@ beach:
|
|||
}
|
||||
|
||||
int
|
||||
gst_udp_set_loop (int sockfd, ADDRESS_FAMILY ss_family, gboolean loop)
|
||||
gst_udp_set_loop (int sockfd, guint16 ss_family, gboolean loop)
|
||||
{
|
||||
int ret = -1;
|
||||
int l = (loop == FALSE) ? 0 : 1;
|
||||
|
@ -153,7 +153,7 @@ gst_udp_set_loop (int sockfd, ADDRESS_FAMILY ss_family, gboolean loop)
|
|||
}
|
||||
|
||||
int
|
||||
gst_udp_set_ttl (int sockfd, ADDRESS_FAMILY ss_family, int ttl, gboolean is_multicast)
|
||||
gst_udp_set_ttl (int sockfd, guint16 ss_family, int ttl, gboolean is_multicast)
|
||||
{
|
||||
int optname = -1;
|
||||
int ret = -1;
|
||||
|
|
|
@ -86,8 +86,8 @@ int gst_udp_get_sockaddr_length (struct sockaddr_storage *addr);
|
|||
int gst_udp_get_addr (const char *hostname, int port, struct sockaddr_storage *addr);
|
||||
int gst_udp_is_multicast (struct sockaddr_storage *addr);
|
||||
|
||||
int gst_udp_set_loop (int sockfd, ADDRESS_FAMILY ss_family, gboolean loop);
|
||||
int gst_udp_set_ttl (int sockfd, ADDRESS_FAMILY ss_family, int ttl, gboolean is_multicast);
|
||||
int gst_udp_set_loop (int sockfd, guint16 ss_family, gboolean loop);
|
||||
int gst_udp_set_ttl (int sockfd, guint16 ss_family, int ttl, gboolean is_multicast);
|
||||
|
||||
/* multicast groups */
|
||||
int gst_udp_join_group (int sockfd, struct sockaddr_storage *addr,
|
||||
|
|
Loading…
Reference in a new issue