rtph264pay: avoid double buffer unmap on error
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=703171
This commit is contained in:
parent
3289a2963b
commit
692206d3a7
@ -556,10 +556,12 @@ gst_rtp_h264_pay_setcaps (GstRTPBasePayload * basepayload, GstCaps * caps)
|
||||
data += nal_size;
|
||||
size -= nal_size;
|
||||
}
|
||||
gst_buffer_unmap (buffer, &map);
|
||||
|
||||
/* and update the caps with the collected data */
|
||||
if (!gst_rtp_h264_pay_set_sps_pps (basepayload))
|
||||
goto set_sps_pps_failed;
|
||||
|
||||
gst_buffer_unmap (buffer, &map);
|
||||
} else {
|
||||
GST_DEBUG_OBJECT (rtph264pay, "have bytestream h264");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user