]> git.sesse.net Git - nageru/blobdiff - httpd.cpp
Make it possible to override stream mux on the command line.
[nageru] / httpd.cpp
index 518e77dc4cafa0a39c689a7be299b0f65da03535..f6664b3df900879fe89a6f14c7c72160e7293ed2 100644 (file)
--- a/httpd.cpp
+++ b/httpd.cpp
@@ -92,7 +92,7 @@ int HTTPD::answer_to_connection(MHD_Connection *connection,
                                const char *version, const char *upload_data,
                                size_t *upload_data_size, void **con_cls)
 {
-       AVOutputFormat *oformat = av_guess_format(STREAM_MUX_NAME, nullptr, nullptr);
+       AVOutputFormat *oformat = av_guess_format(global_flags.stream_mux_name.c_str(), nullptr, nullptr);
        assert(oformat != nullptr);
        HTTPD::Stream *stream = new HTTPD::Stream(oformat, width, height);
        {