summaryrefslogtreecommitdiff
path: root/src/lib/video_decoder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/video_decoder.cc')
-rw-r--r--src/lib/video_decoder.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc
index dceadcd15..b9ead52c8 100644
--- a/src/lib/video_decoder.cc
+++ b/src/lib/video_decoder.cc
@@ -101,3 +101,10 @@ VideoDecoder::emit (shared_ptr<const ImageProxy> image, Frame frame)
_position = ContentTime::from_frames (frame, _content->active_video_frame_rate ());
}
}
+
+void
+VideoDecoder::seek ()
+{
+ _position = ContentTime();
+ _last_emitted.reset ();
+}