mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
rtspsrc: remove unnecessary NULL checks before g_free()
This commit is contained in:
parent
3374c00d43
commit
a4c8ec8bd7
1 changed files with 5 additions and 10 deletions
|
@ -1082,12 +1082,10 @@ gst_rtspsrc_set_property (GObject * object, guint prop_id, const GValue * value,
|
||||||
gst_rtspsrc_set_proxy (rtspsrc, g_value_get_string (value));
|
gst_rtspsrc_set_proxy (rtspsrc, g_value_get_string (value));
|
||||||
break;
|
break;
|
||||||
case PROP_PROXY_ID:
|
case PROP_PROXY_ID:
|
||||||
if (rtspsrc->prop_proxy_id)
|
|
||||||
g_free (rtspsrc->prop_proxy_id);
|
g_free (rtspsrc->prop_proxy_id);
|
||||||
rtspsrc->prop_proxy_id = g_value_dup_string (value);
|
rtspsrc->prop_proxy_id = g_value_dup_string (value);
|
||||||
break;
|
break;
|
||||||
case PROP_PROXY_PW:
|
case PROP_PROXY_PW:
|
||||||
if (rtspsrc->prop_proxy_pw)
|
|
||||||
g_free (rtspsrc->prop_proxy_pw);
|
g_free (rtspsrc->prop_proxy_pw);
|
||||||
rtspsrc->prop_proxy_pw = g_value_dup_string (value);
|
rtspsrc->prop_proxy_pw = g_value_dup_string (value);
|
||||||
break;
|
break;
|
||||||
|
@ -1095,12 +1093,10 @@ gst_rtspsrc_set_property (GObject * object, guint prop_id, const GValue * value,
|
||||||
rtspsrc->rtp_blocksize = g_value_get_uint (value);
|
rtspsrc->rtp_blocksize = g_value_get_uint (value);
|
||||||
break;
|
break;
|
||||||
case PROP_USER_ID:
|
case PROP_USER_ID:
|
||||||
if (rtspsrc->user_id)
|
|
||||||
g_free (rtspsrc->user_id);
|
g_free (rtspsrc->user_id);
|
||||||
rtspsrc->user_id = g_value_dup_string (value);
|
rtspsrc->user_id = g_value_dup_string (value);
|
||||||
break;
|
break;
|
||||||
case PROP_USER_PW:
|
case PROP_USER_PW:
|
||||||
if (rtspsrc->user_pw)
|
|
||||||
g_free (rtspsrc->user_pw);
|
g_free (rtspsrc->user_pw);
|
||||||
rtspsrc->user_pw = g_value_dup_string (value);
|
rtspsrc->user_pw = g_value_dup_string (value);
|
||||||
break;
|
break;
|
||||||
|
@ -4510,7 +4506,6 @@ gst_rtsp_conninfo_connect (GstRTSPSrc * src, GstRTSPConnInfo * info,
|
||||||
if ((res = gst_rtsp_connection_create (info->url, &info->connection)) < 0)
|
if ((res = gst_rtsp_connection_create (info->url, &info->connection)) < 0)
|
||||||
goto could_not_create;
|
goto could_not_create;
|
||||||
|
|
||||||
if (info->url_str)
|
|
||||||
g_free (info->url_str);
|
g_free (info->url_str);
|
||||||
info->url_str = gst_rtsp_url_get_request_uri (info->url);
|
info->url_str = gst_rtsp_url_get_request_uri (info->url);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue