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/7910>
g_return_val_if_fail (write_flags &
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;
/* if there already is a twcc-seqnum inside the packet */