mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-21 17:21:13 +00:00
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:
parent
827caa662c
commit
72edd65710
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ gst_rtp_header_extension_twcc_write (GstRTPHeaderExtension * ext,
|
|||
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 */
|
||||
|
|
Loading…
Reference in a new issue