mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
rtp: fix unmap calls
This commit is contained in:
parent
ed59c841a4
commit
e4fed38f49
2 changed files with 3 additions and 3 deletions
|
@ -558,6 +558,8 @@ gst_rtp_h264_depay_handle_nal (GstRtpH264Depay * rtph264depay, GstBuffer * nal,
|
|||
&out_keyframe);
|
||||
|
||||
/* add to adapter */
|
||||
gst_buffer_unmap (nal, &map);
|
||||
|
||||
GST_DEBUG_OBJECT (depayload, "adding NAL to picture adapter");
|
||||
gst_adapter_push (rtph264depay->picture_adapter, nal);
|
||||
rtph264depay->last_ts = in_timestamp;
|
||||
|
@ -571,8 +573,8 @@ gst_rtp_h264_depay_handle_nal (GstRtpH264Depay * rtph264depay, GstBuffer * nal,
|
|||
/* no merge, output is input nal */
|
||||
GST_DEBUG_OBJECT (depayload, "using NAL as output");
|
||||
outbuf = nal;
|
||||
gst_buffer_unmap (nal, &map);
|
||||
}
|
||||
gst_buffer_unmap (nal, &map);
|
||||
|
||||
if (outbuf) {
|
||||
/* prepend codec_data */
|
||||
|
|
|
@ -453,8 +453,6 @@ gst_rtp_mp4g_depay_process (GstRTPBaseDepayload * depayload, GstBuffer * buf)
|
|||
rtptime = gst_rtp_buffer_get_timestamp (&rtp);
|
||||
M = gst_rtp_buffer_get_marker (&rtp);
|
||||
|
||||
gst_rtp_buffer_unmap (&rtp);
|
||||
|
||||
if (rtpmp4gdepay->sizelength > 0) {
|
||||
gint num_AU_headers, AU_headers_bytes, i;
|
||||
GstBsParse bs;
|
||||
|
|
Loading…
Reference in a new issue