projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e34ab46
)
rtspsrc: use EINVAL for missing url parameter
author
Stefan Kost
<ensonic@users.sf.net>
Wed, 18 May 2011 07:22:27 +0000
(10:22 +0300)
committer
Stefan Kost
<ensonic@users.sf.net>
Wed, 18 May 2011 07:22:27 +0000
(10:22 +0300)
Fixes gcc warning about using uninitialized variable 'res'.
gst/rtsp/gstrtspsrc.c
patch
|
blob
|
history
diff --git
a/gst/rtsp/gstrtspsrc.c
b/gst/rtsp/gstrtspsrc.c
index
86ba69b
..
b42be25
100644
(file)
--- a/
gst/rtsp/gstrtspsrc.c
+++ b/
gst/rtsp/gstrtspsrc.c
@@
-5525,8
+5525,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)