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