media: attempt to configure bigger UDP buffers

Attempt to configure bigger udp kernel send buffers to avoid overflowing the
send buffers with high bitrate streams.
This commit is contained in:
Wim Taymans 2011-01-05 12:06:23 +01:00
parent b5a1719e89
commit 790c067919

View file

@ -850,6 +850,13 @@ again:
stream->filter_duplicates = TRUE;
}
if (g_object_class_find_property (G_OBJECT_GET_CLASS (udpsink0),
"buffer-size")) {
g_object_set (G_OBJECT (udpsink0), "buffer-size", 0x80000, NULL);
} else {
GST_WARNING ("multiudpsink version found without buffer-size property");
}
g_object_get (G_OBJECT (udpsrc1), "sock", &sockfd, NULL);
g_object_set (G_OBJECT (udpsink1), "sockfd", sockfd, NULL);
g_object_set (G_OBJECT (udpsink1), "closefd", FALSE, NULL);