X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=shared%2Fdisk_space_estimator.h;h=dfbb4a4cc788ca8bf8bd34b1bef57daad58f5ec1;hb=948d715655a84b93d8292e64731ea3c32b45deb7;hp=163b7efd555dd81ac2df84a5fc8591f63b393673;hpb=db2997d7290315086635ec914137b80f855cee37;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().