Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic
[dcpomatic.git] / src / lib / video_decoder.cc
index afd4a83eeb12c7219b0049a7b892a4d2b69b10f6..3625e074fba0460fc63729a00bc30c446f7d769b 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2016 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2018 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -97,3 +97,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 ();
+}