summaryrefslogtreecommitdiff
path: root/src/lib/video_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-04-02 21:20:35 +0100
committerCarl Hetherington <cth@carlh.net>2013-04-02 21:20:35 +0100
commit956da4b106e14c49b179176acf6484c479c21094 (patch)
tree0fee47183fd58dcf90ef059171c2e73d9916bb89 /src/lib/video_decoder.cc
parent20cd8bdecb9667f7d838dbb7210f3e1a4765c662 (diff)
Various fixes.
Diffstat (limited to 'src/lib/video_decoder.cc')
-rw-r--r--src/lib/video_decoder.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc
index 32b06085f..47385cc61 100644
--- a/src/lib/video_decoder.cc
+++ b/src/lib/video_decoder.cc
@@ -54,6 +54,12 @@ VideoDecoder::emit_video (shared_ptr<Image> image, double t)
_last_source_time = t;
}
+bool
+VideoDecoder::have_last_video () const
+{
+ return _last_image;
+}
+
/** Called by subclasses to repeat the last video frame that we
* passed to emit_video(). If emit_video hasn't yet been called,
* we will generate a black frame.