rtpmanager: don't map READWRITE in twcc header ext

There is no need to map the buffer as writable, as there is
only a read performed on the mapped buffer. This is in line
with other header extensions, as no other extensions maps
it as readwrite.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7895>
This commit is contained in:
Albert Sjolund 2024-11-15 11:44:17 +01:00 committed by GStreamer Marge Bot
parent 827caa662c
commit 72edd65710

View file

@ -179,7 +179,7 @@ gst_rtp_header_extension_twcc_write (GstRTPHeaderExtension * ext,
g_return_val_if_fail (write_flags & g_return_val_if_fail (write_flags &
gst_rtp_header_extension_twcc_get_supported_flags (ext), -1); gst_rtp_header_extension_twcc_get_supported_flags (ext), -1);
if (!gst_rtp_buffer_map (output, GST_MAP_READWRITE, &rtp)) if (!gst_rtp_buffer_map (output, GST_MAP_READ, &rtp))
goto map_failed; goto map_failed;
/* if there already is a twcc-seqnum inside the packet */ /* if there already is a twcc-seqnum inside the packet */