Very basic player logging.
[dcpomatic.git] / src / lib / image_decoder.cc
index b0841688fb23d11114b5af019636f9ab5c301f16..fd51c1ba3963888ec891fc44e19349407a29c507 100644 (file)
@@ -44,11 +44,11 @@ ImageDecoder::ImageDecoder (shared_ptr<const ImageContent> c, shared_ptr<Log> lo
        video.reset (new VideoDecoder (this, c, log));
 }
 
-void
+bool
 ImageDecoder::pass ()
 {
        if (_frame_video_position >= _image_content->video->length()) {
-               return;
+               return true;
        }
 
        if (!_image_content->still() || !_image) {
@@ -72,14 +72,14 @@ ImageDecoder::pass ()
                }
        }
 
-       video->set_position (ContentTime::from_frames (_frame_video_position, _image_content->active_video_frame_rate ()));
        video->emit (_image, _frame_video_position);
        ++_frame_video_position;
-       return;
+       return false;
 }
 
 void
-ImageDecoder::seek (ContentTime time, bool)
+ImageDecoder::seek (ContentTime time, bool accurate)
 {
+       Decoder::seek (time, accurate);
        _frame_video_position = time.frames_round (_image_content->active_video_frame_rate ());
 }