mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
udpsrc: fix SO_RCVBUF handling
This commit is contained in:
parent
af59f573b5
commit
d4a10f2909
1 changed files with 4 additions and 1 deletions
|
@ -112,6 +112,8 @@
|
|||
|
||||
#include <gst/net/gstnetaddressmeta.h>
|
||||
|
||||
#include <sys/socket.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (udpsrc_debug);
|
||||
#define GST_CAT_DEFAULT (udpsrc_debug)
|
||||
|
||||
|
@ -785,9 +787,10 @@ gst_udpsrc_start (GstBaseSrc * bsrc)
|
|||
if (src->timeout)
|
||||
g_socket_set_timeout (src->used_socket, src->timeout / GST_SECOND);
|
||||
|
||||
#ifdef SO_RECVBUF
|
||||
#ifdef SO_RCVBUF
|
||||
{
|
||||
gint rcvsize, ret;
|
||||
socklen_t len;
|
||||
|
||||
len = sizeof (rcvsize);
|
||||
if (src->buffer_size != 0) {
|
||||
|
|
Loading…
Reference in a new issue