summaryrefslogtreecommitdiffstats
path: root/gst/udp/gstdynudpsink.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/udp/gstdynudpsink.c')
-rw-r--r--gst/udp/gstdynudpsink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/udp/gstdynudpsink.c b/gst/udp/gstdynudpsink.c
index f9b3eb8e..abdbc718 100644
--- a/gst/udp/gstdynudpsink.c
+++ b/gst/udp/gstdynudpsink.c
@@ -243,7 +243,11 @@ gst_dynudpsink_render (GstBaseSink * bsink, GstBuffer * buffer)
theiraddr.sin_family = AF_INET;
theiraddr.sin_addr.s_addr = destaddr;
theiraddr.sin_port = destport;
+#ifdef G_OS_WIN32
+ ret = sendto (sink->sock, (char *) data, size, 0,
+#else
ret = sendto (sink->sock, data, size, 0,
+#endif
(struct sockaddr *) &theiraddr, sizeof (theiraddr));
if (ret < 0) {