mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
udpsrc: Fix build when SO_RCVBUFFORCE is not defined
This shoudl fix the mingw build.
This commit is contained in:
parent
c61bcb1fd2
commit
cf34d51318
1 changed files with 3 additions and 2 deletions
|
@ -1411,7 +1411,7 @@ gst_udpsrc_open (GstUDPSrc * src)
|
|||
{
|
||||
gint val;
|
||||
GError *opt_err = NULL;
|
||||
gboolean force_rcvbuf = FALSE;
|
||||
gboolean force_rcvbuf G_GNUC_UNUSED = FALSE;
|
||||
|
||||
if (src->buffer_size != 0) {
|
||||
GST_INFO_OBJECT (src, "setting udp buffer of %d bytes", src->buffer_size);
|
||||
|
@ -1427,7 +1427,7 @@ gst_udpsrc_open (GstUDPSrc * src)
|
|||
force_rcvbuf = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(SO_RCVBUFFORCE)
|
||||
val = gst_udpsrc_get_rcvbuf (src);
|
||||
if (val < src->buffer_size)
|
||||
force_rcvbuf = TRUE;
|
||||
|
@ -1445,6 +1445,7 @@ gst_udpsrc_open (GstUDPSrc * src)
|
|||
g_clear_error (&opt_err);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
val = gst_udpsrc_get_rcvbuf (src);
|
||||
if (val < src->buffer_size)
|
||||
|
|
Loading…
Reference in a new issue