mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
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:
parent
1588cda9a1
commit
2481e95d03
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue