rtprtx: don't access type-system per buffer
authorHavard Graff <havard@pexip.com>
Mon, 8 Feb 2021 20:40:19 +0000 (21:40 +0100)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 7 Mar 2022 22:01:03 +0000 (22:01 +0000)
commita475c93346f9caeba0ff4d1daefca5e6a0a43600
tree93d7e4508587950068150d10bb99004aa2d720b3
parent2a26daee4635bec7cae9fe19e60f3de0eba760d8
rtprtx: don't access type-system per buffer

When doing only a single stream of audio/video this hardly matters,
but when doing many at the same time, the fact that you have to get
a hold of the glib global type-system lock every time you process a buffer,
means that there is a limit to how many streams you can process in
parallel.

Luckily the fix is very simple, by doing a cast rather than a full
type-check.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1873>
subprojects/gst-plugins-good/gst/rtpmanager/gstrtprtxreceive.c
subprojects/gst-plugins-good/gst/rtpmanager/gstrtprtxreceive.h
subprojects/gst-plugins-good/gst/rtpmanager/gstrtprtxsend.c
subprojects/gst-plugins-good/gst/rtpmanager/gstrtprtxsend.h