gstrtspsrc: set buffer-size for multicast buffers

For receiving video data via RTSP when the video is sent via
multicast there is no way to specify the udpsrc buffer-size.

On windows the native network buffer is not large and with video
i-frames being huge the buffer is to small and you get i-frame corruption,
it looks terrible, and there is no (easy) way to set the udpsrc buffer-size.

https://bugs.freedesktop.org/show_bug.cgi?id=52264
This commit is contained in:
Aha Unsworth 2013-05-08 15:25:58 -03:00 committed by Thiago Santos
parent 1588cda9a1
commit 2481e95d03

View file

@ -2889,6 +2889,10 @@ gst_rtspsrc_stream_configure_mcast (GstRTSPSrc * src, GstRTSPStream * stream,
g_object_set (G_OBJECT (stream->udpsrc[0]), "multicast-iface",
src->multi_iface, NULL);
if (src->udp_buffer_size != 0)
g_object_set (G_OBJECT (stream->udpsrc[0]), "buffer-size",
src->udp_buffer_size, NULL);
/* change state */
gst_element_set_state (stream->udpsrc[0], GST_STATE_PAUSED);
}