mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtp/vorbispay: remove unnecessary NULL checks before g_free()
This commit is contained in:
parent
3c8b7e079c
commit
5d23dfdabf
1 changed files with 2 additions and 4 deletions
|
@ -156,7 +156,6 @@ gst_rtp_vorbis_pay_cleanup (GstRtpVorbisPay * rtpvorbispay)
|
|||
gst_rtp_vorbis_pay_clear_packet (rtpvorbispay);
|
||||
g_list_free_full (rtpvorbispay->headers, (GDestroyNotify) gst_buffer_unref);
|
||||
rtpvorbispay->headers = NULL;
|
||||
if (rtpvorbispay->config_data)
|
||||
g_free (rtpvorbispay->config_data);
|
||||
rtpvorbispay->config_data = NULL;
|
||||
rtpvorbispay->last_config = GST_CLOCK_TIME_NONE;
|
||||
|
@ -508,7 +507,6 @@ gst_rtp_vorbis_pay_finish_headers (GstRTPBasePayload * basepayload)
|
|||
configuration = g_base64_encode (config, configlen);
|
||||
|
||||
/* store for later re-sending */
|
||||
if (rtpvorbispay->config_data)
|
||||
g_free (rtpvorbispay->config_data);
|
||||
rtpvorbispay->config_size = configlen - 4 - 3 - 2;
|
||||
rtpvorbispay->config_data = g_malloc (rtpvorbispay->config_size);
|
||||
|
|
Loading…
Reference in a new issue