ffserver: NoVideo and NoAudio flags weren't cleared between streams.
authorZalewa <zalewapl@gmail.com>
Sat, 13 Feb 2016 14:30:15 +0000 (15:30 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 21 Feb 2016 21:29:15 +0000 (22:29 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffserver_config.c

index 9fc1f00..0ec93b5 100644 (file)
@@ -1138,6 +1138,8 @@ static int ffserver_parse_config_stream(FFServerConfig *config, const char *cmd,
         av_dict_free(&config->audio_opts);
         avcodec_free_context(&config->dummy_vctx);
         avcodec_free_context(&config->dummy_actx);
+        config->no_video = 0;
+        config->no_audio = 0;
         *pstream = NULL;
     } else if (!av_strcasecmp(cmd, "File") ||
                !av_strcasecmp(cmd, "ReadOnlyFile")) {