Merge branch 'master' into 0.11
[platform/upstream/gstreamer.git] / gst / rtsp / gstrtspsrc.c
index 3a46360..d355813 100644 (file)
@@ -5502,8 +5502,10 @@ restart:
   src->need_redirect = FALSE;
 
   /* can't continue without a valid url */
-  if (G_UNLIKELY (src->conninfo.url == NULL))
+  if (G_UNLIKELY (src->conninfo.url == NULL)) {
+    res = GST_RTSP_EINVAL;
     goto no_url;
+  }
   src->tried_url_auth = FALSE;
 
   if ((res = gst_rtsp_conninfo_connect (src, &src->conninfo, async)) < 0)