]> git.sesse.net Git - nageru/blobdiff - mixer.cpp
Make the UI show free disk space, and a rough estimation of for how much longer we...
[nageru] / mixer.cpp
index f8ad584e9ac6996e83e7595fd6891d03705478e1..1a4b2cf141ab1562e9eae438a3bc458ded7af476 100644 (file)
--- 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);