rtpbasepayload: map RTP buffer READWRITE when setting headers
authorJakub Adam <jakub.adam@ktknet.cz>
Mon, 24 May 2021 17:01:24 +0000 (19:01 +0200)
committerJakub Adam <jakub.adam@collabora.com>
Mon, 28 Jun 2021 17:07:44 +0000 (19:07 +0200)
commite2e9e321f6ee4484abd4e28a33a9c8256eeac4b4
tree72b672b851d5f5ea5280b61951a1530960b46386
parentb4caa6cbdd46e4402acd4ddc8587656b04a407ce
rtpbasepayload: map RTP buffer READWRITE when setting headers

GstRTPHeaderExtension::write can map the RTP buffer for reading. If that
happens on a buffer that is already mapped WRITE-only by the payloader,
the payloader's mapping gets invalidated (GstRTPBuffer::map will point
to a different instance of GstMemory).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1173>
gst-libs/gst/rtp/gstrtpbasepayload.c