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:
Tim-Philipp Müller 2018-05-05 16:32:59 +02:00
parent ae1c2b0c67
commit 5b8e775d1c

View file

@ -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;