summaryrefslogtreecommitdiff
path: root/src/lib/encoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/encoder.h')
-rw-r--r--src/lib/encoder.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/encoder.h b/src/lib/encoder.h
index f4116c50c..792029a91 100644
--- a/src/lib/encoder.h
+++ b/src/lib/encoder.h
@@ -43,7 +43,10 @@ public:
virtual void go () = 0;
/** @return the current frame rate over the last short while */
- virtual float current_rate () const = 0;
+ virtual boost::optional<float> current_rate () const {
+ return boost::optional<float>();
+ }
+
/** @return the number of frames that are done */
virtual Frame frames_done () const = 0;
virtual bool finishing () const = 0;