mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtsp-stream: Don't leave buffer mapped
If the seq is NULL, the RTP buffer was left mapped. We should always unmap the buffer.
This commit is contained in:
parent
01ae7c01f3
commit
01562286ba
1 changed files with 2 additions and 1 deletions
|
@ -2484,9 +2484,10 @@ gst_rtsp_stream_get_rtpinfo (GstRTSPStream * stream,
|
|||
if (gst_rtp_buffer_map (buffer, GST_MAP_READ, &rtp_buffer)) {
|
||||
if (seq) {
|
||||
*seq = gst_rtp_buffer_get_seq (&rtp_buffer);
|
||||
gst_rtp_buffer_unmap (&rtp_buffer);
|
||||
}
|
||||
|
||||
gst_rtp_buffer_unmap (&rtp_buffer);
|
||||
|
||||
if (rtptime) {
|
||||
*rtptime = GST_BUFFER_TIMESTAMP (buffer);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue