summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2015-03-18 16:44:19 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2015-03-18 16:44:19 -0400
commit01562286ba4d87cf928aef52e1be9c77c76a6506 (patch)
treed6ead0aeef439f98105c030ac1192edacd6a4c7b /gst
parent01ae7c01f37284f4280cb54cb6a42767043fd71f (diff)
rtsp-stream: Don't leave buffer mapped
If the seq is NULL, the RTP buffer was left mapped. We should always unmap the buffer.
Diffstat (limited to 'gst')
-rw-r--r--gst/rtsp-server/rtsp-stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtsp-server/rtsp-stream.c b/gst/rtsp-server/rtsp-stream.c
index 873ca5d..e09f43d 100644
--- a/gst/rtsp-server/rtsp-stream.c
+++ b/gst/rtsp-server/rtsp-stream.c
@@ -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);
}