mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:56:14 +00:00
udpsrc: Windows has no ipi_spec_dst in struct in_pktinfo
This commit is contained in:
parent
cdd5fa4d96
commit
75963b47f4
1 changed files with 6 additions and 1 deletions
|
@ -157,7 +157,10 @@ struct _GstIPPktinfoMessage
|
||||||
GSocketControlMessage parent;
|
GSocketControlMessage parent;
|
||||||
|
|
||||||
guint ifindex;
|
guint ifindex;
|
||||||
struct in_addr spec_dst, addr;
|
#ifndef G_OS_WIN32
|
||||||
|
struct in_addr spec_dst;
|
||||||
|
#endif
|
||||||
|
struct in_addr addr;
|
||||||
};
|
};
|
||||||
|
|
||||||
G_DEFINE_TYPE (GstIPPktinfoMessage, gst_ip_pktinfo_message,
|
G_DEFINE_TYPE (GstIPPktinfoMessage, gst_ip_pktinfo_message,
|
||||||
|
@ -198,7 +201,9 @@ gst_ip_pktinfo_message_deserialize (gint level,
|
||||||
|
|
||||||
message = g_object_new (GST_TYPE_IP_PKTINFO_MESSAGE, NULL);
|
message = g_object_new (GST_TYPE_IP_PKTINFO_MESSAGE, NULL);
|
||||||
message->ifindex = pktinfo->ipi_ifindex;
|
message->ifindex = pktinfo->ipi_ifindex;
|
||||||
|
#ifndef G_OS_WIN32
|
||||||
message->spec_dst = pktinfo->ipi_spec_dst;
|
message->spec_dst = pktinfo->ipi_spec_dst;
|
||||||
|
#endif
|
||||||
message->addr = pktinfo->ipi_addr;
|
message->addr = pktinfo->ipi_addr;
|
||||||
|
|
||||||
return G_SOCKET_CONTROL_MESSAGE (message);
|
return G_SOCKET_CONTROL_MESSAGE (message);
|
||||||
|
|
Loading…
Reference in a new issue