mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
rtpgstpay: remove unnecessary NULL checks before g_free()
This commit is contained in:
parent
a4c8ec8bd7
commit
a34cee5aad
1 changed files with 2 additions and 4 deletions
|
@ -171,8 +171,7 @@ gst_rtp_gst_pay_reset (GstRtpGSTPay * rtpgstpay, gboolean full)
|
||||||
if (rtpgstpay->taglist)
|
if (rtpgstpay->taglist)
|
||||||
gst_tag_list_unref (rtpgstpay->taglist);
|
gst_tag_list_unref (rtpgstpay->taglist);
|
||||||
rtpgstpay->taglist = NULL;
|
rtpgstpay->taglist = NULL;
|
||||||
if (rtpgstpay->stream_id)
|
g_free (rtpgstpay->stream_id);
|
||||||
g_free (rtpgstpay->stream_id);
|
|
||||||
rtpgstpay->stream_id = NULL;
|
rtpgstpay->stream_id = NULL;
|
||||||
rtpgstpay->current_CV = 0;
|
rtpgstpay->current_CV = 0;
|
||||||
rtpgstpay->next_CV = 0;
|
rtpgstpay->next_CV = 0;
|
||||||
|
@ -545,8 +544,7 @@ gst_rtp_gst_pay_sink_event (GstRTPBasePayload * payload, GstEvent * event)
|
||||||
|
|
||||||
gst_event_parse_stream_start (event, &stream_id);
|
gst_event_parse_stream_start (event, &stream_id);
|
||||||
if (stream_id) {
|
if (stream_id) {
|
||||||
if (rtpgstpay->stream_id)
|
g_free (rtpgstpay->stream_id);
|
||||||
g_free (rtpgstpay->stream_id);
|
|
||||||
rtpgstpay->stream_id = g_strdup (stream_id);
|
rtpgstpay->stream_id = g_strdup (stream_id);
|
||||||
}
|
}
|
||||||
etype = 4;
|
etype = 4;
|
||||||
|
|
Loading…
Reference in a new issue