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:
Nicolas Dufresne 2015-03-18 16:44:19 -04:00
parent 01ae7c01f3
commit 01562286ba

View file

@ -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);
}