rtpbuffer: optimise payload mapping for buffers with one memory
authorTim-Philipp Müller <tim@centricular.com>
Fri, 29 May 2015 13:15:31 +0000 (14:15 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 1 Jun 2015 18:01:23 +0000 (19:01 +0100)
commit6410aba1aaed2fd3d3acca2b879e691bb54a1449
tree84baed5b5a494b9ed1e201311582a11681e80a71
parentbc309a100f4a10fae48468036ee1041d1673a322
rtpbuffer: optimise payload mapping for buffers with one memory

Micro-optimisation: if the buffer consist of just one memory, we
know we have already mapped that memory to read the headers, so
no need to map it another time to get to the payload data, we
can just set up the payload data details right there and then
and avoid another map call in gst_rtp_buffer_get_payload().
Adds up when receiving RTP-payloaded raw video which can easily
be thousands of packets per frame.
gst-libs/gst/rtp/gstrtpbuffer.c