]> git.sesse.net Git - nageru/blobdiff - shared/disk_space_estimator.h
Make it possible for the theme to override the status line.
[nageru] / shared / disk_space_estimator.h
index 163b7efd555dd81ac2df84a5fc8591f63b393673..dfbb4a4cc788ca8bf8bd34b1bef57daad58f5ec1 100644 (file)
@@ -20,7 +20,7 @@
 
 class DiskSpaceEstimator {
 public:
-       typedef std::function<void(off_t free_bytes, double estimated_seconds_left)> callback_t;
+       typedef std::function<void(off_t free_bytes, double estimated_seconds_left, double file_length_seconds)> 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<MeasurePoint> 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().