X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fimage_decoder.cc;h=fd51c1ba3963888ec891fc44e19349407a29c507;hb=97632e5e91fc0e2c0a3dd84ed9a167f79e4bd14d;hp=6d8f878efeef1a8fe0dd1cd44bed12708c11849b;hpb=22b13599407e45d85d1c83e0805aa14965b0ab19;p=dcpomatic.git diff --git a/src/lib/image_decoder.cc b/src/lib/image_decoder.cc index 6d8f878ef..fd51c1ba3 100644 --- a/src/lib/image_decoder.cc +++ b/src/lib/image_decoder.cc @@ -44,11 +44,11 @@ ImageDecoder::ImageDecoder (shared_ptr c, shared_ptr 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) { @@ -74,11 +74,12 @@ ImageDecoder::pass () 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 ()); }