Commit a846e843 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h

rtspsrc: remove duplicate test

item was dereference previously.

While there, reorder some test for faster early out.

Coverity 1139844
parent a6e79487
......@@ -5132,8 +5132,7 @@ gst_rtspsrc_parse_digest_challenge (GstRTSPConnection * conn,
} else
value = NULL;
if (item && (strcmp (item, "stale") == 0) &&
value && (strcmp (value, "TRUE") == 0))
if (value && strcmp (item, "stale") == 0 && strcmp (value, "TRUE") == 0)
*stale = TRUE;
gst_rtsp_connection_set_auth_param (conn, item, value);
g_free (item);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment