X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mixer.cpp;h=1a4b2cf141ab1562e9eae438a3bc458ded7af476;hb=b561d43a60201395f1354a585aa37670eda45883;hp=f8ad584e9ac6996e83e7595fd6891d03705478e1;hpb=f50d8a87fe399541b73c4e36ba2c78c4a8443447;p=nageru diff --git a/mixer.cpp b/mixer.cpp index f8ad584..1a4b2cf 100644 --- a/mixer.cpp +++ b/mixer.cpp @@ -37,6 +37,7 @@ #include "context.h" #include "decklink_capture.h" #include "defs.h" +#include "disk_space_estimator.h" #include "flags.h" #include "video_encoder.h" #include "pbo_frame_allocator.h" @@ -165,7 +166,7 @@ Mixer::Mixer(const QSurfaceFormat &format, unsigned num_cards) display_chain->set_dither_bits(0); // Don't bother. display_chain->finalize(); - video_encoder.reset(new VideoEncoder(resource_pool.get(), h264_encoder_surface, global_flags.va_display, WIDTH, HEIGHT, &httpd)); + video_encoder.reset(new VideoEncoder(resource_pool.get(), h264_encoder_surface, global_flags.va_display, WIDTH, HEIGHT, &httpd, global_disk_space_estimator)); // Start listening for clients only once VideoEncoder has written its header, if any. httpd.start(9095);