mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
rtspsrc: remove duplicate test
item was dereference previously. While there, reorder some test for faster early out. Coverity 1139844
This commit is contained in:
parent
a6e7948711
commit
a846e84349
1 changed files with 1 additions and 2 deletions
|
@ -5132,8 +5132,7 @@ gst_rtspsrc_parse_digest_challenge (GstRTSPConnection * conn,
|
||||||
} else
|
} else
|
||||||
value = NULL;
|
value = NULL;
|
||||||
|
|
||||||
if (item && (strcmp (item, "stale") == 0) &&
|
if (value && strcmp (item, "stale") == 0 && strcmp (value, "TRUE") == 0)
|
||||||
value && (strcmp (value, "TRUE") == 0))
|
|
||||||
*stale = TRUE;
|
*stale = TRUE;
|
||||||
gst_rtsp_connection_set_auth_param (conn, item, value);
|
gst_rtsp_connection_set_auth_param (conn, item, value);
|
||||||
g_free (item);
|
g_free (item);
|
||||||
|
|
Loading…
Reference in a new issue