mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
rtspsrc: use EINVAL for missing url parameter
Fixes gcc warning about using uninitialized variable 'res'.
This commit is contained in:
parent
e34ab46420
commit
be413185d0
1 changed files with 3 additions and 1 deletions
|
@ -5525,8 +5525,10 @@ restart:
|
||||||
src->need_redirect = FALSE;
|
src->need_redirect = FALSE;
|
||||||
|
|
||||||
/* can't continue without a valid url */
|
/* 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;
|
goto no_url;
|
||||||
|
}
|
||||||
src->tried_url_auth = FALSE;
|
src->tried_url_auth = FALSE;
|
||||||
|
|
||||||
if ((res = gst_rtsp_conninfo_connect (src, &src->conninfo, async)) < 0)
|
if ((res = gst_rtsp_conninfo_connect (src, &src->conninfo, async)) < 0)
|
||||||
|
|
Loading…
Reference in a new issue