rtpjpeg: Use gst_memory_map() instead of gst_buffer_map()
authorKristofer Björkström <kristofb@axis.com>
Wed, 1 Apr 2020 11:19:46 +0000 (13:19 +0200)
committerKristofer Björkström <kristofb@axis.com>
Fri, 3 Apr 2020 15:01:24 +0000 (17:01 +0200)
commit586fc57e55796da55ceb4cf3599affe0f3a354de
tree14c14b30789a70d8d18aa427657f66f717d69fbd
parent54b6ee0c55d0a64350dbac52d77785882aa87ea2
rtpjpeg: Use gst_memory_map() instead of gst_buffer_map()

gst_buffer_map () results in memcopying when a GstBuffer contains
more than one GstMemory.
This has quite an impact on performance on systems with limited amount
of resources. With this patch the whole GstBuffer will not be mapped at
once, instead each individual GstMemory will be iterated and mapped
separately.
gst/rtp/gstrtpjpegpay.c
tests/check/elements/rtpjpeg.c [new file with mode: 0644]
tests/check/meson.build