aboutsummaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-05-29 02:31:35 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-05-29 02:31:35 +0000
commita9c1bb711b72652877cb1798deb31f7e20022a03 (patch)
treef8d372a24628195408a1d9351b95cbcc734879f7 /ffserver.c
parent7e183a93d8b5b07843abd7dddc8b7215f06321ec (diff)
downloadffmpeg-a9c1bb711b72652877cb1798deb31f7e20022a03.tar.gz
check that redirect is set, fixes CID13 RUN2
Originally committed as revision 13524 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index 495207520f..6bc447c671 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -4274,13 +4274,14 @@ static int parse_ffconfig(const char *filename)
fprintf(stderr, "%s:%d: No corresponding <Redirect> for </Redirect>\n",
filename, line_num);
errors++;
- }
+ } else {
if (!redirect->feed_filename[0]) {
fprintf(stderr, "%s:%d: No URL found for <Redirect>\n",
filename, line_num);
errors++;
}
redirect = NULL;
+ }
} else if (!strcasecmp(cmd, "LoadModule")) {
get_arg(arg, sizeof(arg), &p);
#ifdef HAVE_DLOPEN