rtsp: clarify expression so operator precedence is clear

https://bugzilla.gnome.org/show_bug.cgi?id=736903
This commit is contained in:
Sanjay NM 2014-09-18 17:59:31 +05:30 committed by Tim-Philipp Müller
parent 26a1344f37
commit f62076e49c

View file

@ -6251,7 +6251,8 @@ gst_rtspsrc_setup_streams (GstRTSPSrc * src, gboolean async)
stream->id));
/* handle the code ourselves */
if ((res = gst_rtspsrc_send (src, conn, &request, &response, &code) < 0))
res = gst_rtspsrc_send (src, conn, &request, &response, &code);
if (res < 0)
goto send_error;
switch (code) {
@ -7935,11 +7936,13 @@ gst_rtspsrc_uri_set_uri (GstURIHandler * handler, const gchar * uri,
goto was_ok;
if (g_str_has_prefix (uri, "rtsp-sdp://")) {
if ((res = gst_sdp_message_new (&sdp) < 0))
res = gst_sdp_message_new (&sdp);
if (res < 0)
goto sdp_failed;
GST_DEBUG_OBJECT (src, "parsing SDP message");
if ((res = gst_sdp_message_parse_uri (uri, sdp) < 0))
res = gst_sdp_message_parse_uri (uri, sdp);
if (res < 0)
goto invalid_sdp;
} else {
/* try to parse */