mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 22:46:24 +00:00
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>
This commit is contained in:
parent
b4caa6cbdd
commit
e2e9e321f6
1 changed files with 1 additions and 1 deletions
|
@ -1711,7 +1711,7 @@ set_headers (GstBuffer ** buffer, guint idx, gpointer user_data)
|
|||
HeaderExt hdrext = { NULL, };
|
||||
GstRTPBuffer rtp = { NULL, };
|
||||
|
||||
if (!gst_rtp_buffer_map (*buffer, GST_MAP_WRITE, &rtp))
|
||||
if (!gst_rtp_buffer_map (*buffer, GST_MAP_READWRITE, &rtp))
|
||||
goto map_failed;
|
||||
|
||||
gst_rtp_buffer_set_ssrc (&rtp, data->ssrc);
|
||||
|
|
Loading…
Reference in a new issue