Commit 7f88e88b authored by Zeeshan Ali's avatar Zeeshan Ali

Making some things work and breaking others

Original commit message from CVS:
Making some things work and breaking others
parent f795ae93
......@@ -258,7 +258,8 @@ static void
gst_udpsink_chain (GstPad *pad, GstBuffer *buf)
{
GstUDPSink *udpsink;
guint tolen, i;
guint tolen;
/*guint tolen, i;*/
g_return_if_fail (pad != NULL);
g_return_if_fail (GST_IS_PAD (pad));
......@@ -276,7 +277,13 @@ gst_udpsink_chain (GstPad *pad, GstBuffer *buf)
tolen = sizeof(udpsink->theiraddr);
for (i = 0; i < GST_BUFFER_SIZE (buf); i += udpsink->mtu) {
if (sendto (udpsink->sock, GST_BUFFER_DATA (buf),
GST_BUFFER_SIZE (buf), 0, (struct sockaddr *) &udpsink->theiraddr,
tolen) == -1) {
perror("sending");
}
/*for (i = 0; i < GST_BUFFER_SIZE (buf); i += udpsink->mtu) {
if (GST_BUFFER_SIZE (buf) - i > udpsink->mtu) {
if (sendto (udpsink->sock, GST_BUFFER_DATA (buf) + i,
udpsink->mtu, 0, (struct sockaddr *) &udpsink->theiraddr,
......@@ -291,7 +298,7 @@ gst_udpsink_chain (GstPad *pad, GstBuffer *buf)
perror("sending");
}
}
}
}*/
gst_buffer_unref(buf);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment