X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Fdisk_space_estimator.h;h=dfbb4a4cc788ca8bf8bd34b1bef57daad58f5ec1;hb=f9219370ce1f5ba37e716d50d41115bb672c4244;hp=163b7efd555dd81ac2df84a5fc8591f63b393673;hpb=827606868bf9f1dd16208882f0e3ca424b3e9e0a;p=nageru diff --git a/shared/disk_space_estimator.h b/shared/disk_space_estimator.h index 163b7ef..dfbb4a4 100644 --- a/shared/disk_space_estimator.h +++ b/shared/disk_space_estimator.h @@ -20,7 +20,7 @@ class DiskSpaceEstimator { public: - typedef std::function callback_t; + typedef std::function callback_t; DiskSpaceEstimator(callback_t callback); // Report that a video frame with the given pts and size has just been @@ -56,6 +56,7 @@ private: }; std::deque measure_points; uint64_t last_pts_reported = 0; + uint64_t first_pts_this_file = 0; off_t total_size = 0; // For report_write(). std::string last_filename; // For report_append().