mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
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:
parent
b5a1719e89
commit
790c067919
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue