mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
rtpvrawpay: don't use buffer lists if everything fits into one buffer
People might use very large mtu sizes where every payload fits into a single output packet. https://bugzilla.gnome.org/show_bug.cgi?id=795758
This commit is contained in:
parent
ae1c2b0c67
commit
5b8e775d1c
1 changed files with 2 additions and 1 deletions
|
@ -325,7 +325,8 @@ gst_rtp_vraw_pay_handle_buffer (GstRTPBasePayload * payload, GstBuffer * buffer)
|
||||||
buffers_per_list = packlines_per_list * packets_per_packline;
|
buffers_per_list = packlines_per_list * packets_per_packline;
|
||||||
buffers_per_list = GST_ROUND_UP_8 (buffers_per_list);
|
buffers_per_list = GST_ROUND_UP_8 (buffers_per_list);
|
||||||
|
|
||||||
use_buffer_lists = (rtpvrawpay->chunks_per_frame < (height / yinc));
|
use_buffer_lists = buffers_per_list > 1 &&
|
||||||
|
(rtpvrawpay->chunks_per_frame < (height / yinc));
|
||||||
|
|
||||||
fields = 1 + interlaced;
|
fields = 1 + interlaced;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue