Commit 4304e18b authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

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
parent 45f0b5fc
......@@ -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 = 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment