mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
rtp/theorapay: remove unnecessary NULL checks before g_free()
This commit is contained in:
parent
5d23dfdabf
commit
5367b26653
1 changed files with 2 additions and 4 deletions
|
@ -164,7 +164,6 @@ gst_rtp_theora_pay_cleanup (GstRtpTheoraPay * rtptheorapay)
|
||||||
gst_rtp_theora_pay_clear_packet (rtptheorapay);
|
gst_rtp_theora_pay_clear_packet (rtptheorapay);
|
||||||
g_list_free_full (rtptheorapay->headers, (GDestroyNotify) gst_buffer_unref);
|
g_list_free_full (rtptheorapay->headers, (GDestroyNotify) gst_buffer_unref);
|
||||||
rtptheorapay->headers = NULL;
|
rtptheorapay->headers = NULL;
|
||||||
if (rtptheorapay->config_data)
|
|
||||||
g_free (rtptheorapay->config_data);
|
g_free (rtptheorapay->config_data);
|
||||||
rtptheorapay->config_data = NULL;
|
rtptheorapay->config_data = NULL;
|
||||||
rtptheorapay->last_config = GST_CLOCK_TIME_NONE;
|
rtptheorapay->last_config = GST_CLOCK_TIME_NONE;
|
||||||
|
@ -516,7 +515,6 @@ gst_rtp_theora_pay_finish_headers (GstRTPBasePayload * basepayload)
|
||||||
configuration = g_base64_encode (config, configlen);
|
configuration = g_base64_encode (config, configlen);
|
||||||
|
|
||||||
/* store for later re-sending */
|
/* store for later re-sending */
|
||||||
if (rtptheorapay->config_data)
|
|
||||||
g_free (rtptheorapay->config_data);
|
g_free (rtptheorapay->config_data);
|
||||||
rtptheorapay->config_size = configlen - 4 - 3 - 2;
|
rtptheorapay->config_size = configlen - 4 - 3 - 2;
|
||||||
rtptheorapay->config_data = g_malloc (rtptheorapay->config_size);
|
rtptheorapay->config_data = g_malloc (rtptheorapay->config_size);
|
||||||
|
|
Loading…
Reference in a new issue