ffserver_config: report not closed last tag
authorLukasz Marek <lukasz.m.luki2@gmail.com>
Sat, 8 Nov 2014 18:17:48 +0000 (19:17 +0100)
committerLukasz Marek <lukasz.m.luki2@gmail.com>
Wed, 12 Nov 2014 22:33:08 +0000 (23:33 +0100)
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
ffserver_config.c

index 5bb2d29..ac89063 100644 (file)
@@ -1208,6 +1208,8 @@ int ffserver_parse_ffconfig(const char *filename, FFServerConfig *config)
             ffserver_parse_config_global(config, cmd, &p, line_num);
         }
     }
+    if (stream || feed || redirect)
+        ERROR("Not closed tag %s\n", stream ? "<Stream>" : (feed ? "<Feed>" : "<Redirect>"));
 
     fclose(f);
     if (ret < 0)