diff options
| -rw-r--r-- | src/lib/video_encoder.cc | 7 | ||||
| -rw-r--r-- | src/lib/video_encoder.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/video_encoder.cc b/src/lib/video_encoder.cc index 590dc7471..13c9fda46 100644 --- a/src/lib/video_encoder.cc +++ b/src/lib/video_encoder.cc @@ -54,6 +54,13 @@ VideoEncoder::video_frames_enqueued() const } +int +VideoEncoder::video_frames_encoded() const +{ + return _history.events(); +} + + /** @return an estimate of the current number of frames we are encoding per second, * if known. */ diff --git a/src/lib/video_encoder.h b/src/lib/video_encoder.h index 8cc33ef8a..7a9813ba8 100644 --- a/src/lib/video_encoder.h +++ b/src/lib/video_encoder.h @@ -54,6 +54,7 @@ public: virtual void end() = 0; int video_frames_enqueued() const; + int video_frames_encoded() const; boost::optional<float> current_encoding_rate() const; protected: |
