mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
rtph265pay: fix buffer leak when using SPS/PPS
Fixes a buffer leak that would occur if the pipeline was shutdown while a SPS/PPS header was being created. https://bugzilla.gnome.org/show_bug.cgi?id=741271
This commit is contained in:
parent
fd665514ba
commit
b3418759d9
1 changed files with 3 additions and 1 deletions
|
@ -995,9 +995,11 @@ gst_rtp_h265_pay_payload_nal (GstRTPBasePayload * basepayload,
|
||||||
* checking when we need to send SPS/PPS but convert to running_time first. */
|
* checking when we need to send SPS/PPS but convert to running_time first. */
|
||||||
rtph265pay->send_vps_sps_pps = FALSE;
|
rtph265pay->send_vps_sps_pps = FALSE;
|
||||||
ret = gst_rtp_h265_pay_send_vps_sps_pps (basepayload, rtph265pay, dts, pts);
|
ret = gst_rtp_h265_pay_send_vps_sps_pps (basepayload, rtph265pay, dts, pts);
|
||||||
if (ret != GST_FLOW_OK)
|
if (ret != GST_FLOW_OK) {
|
||||||
|
gst_buffer_unref (paybuf);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
packet_len = gst_rtp_buffer_calc_packet_len (size, 0, 0);
|
packet_len = gst_rtp_buffer_calc_packet_len (size, 0, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue