X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fvideo_decoder.cc;h=813320eb86f89ecd5518a315df121a9011500411;hp=3625e074fba0460fc63729a00bc30c446f7d769b;hb=254b3044d72de6b033d7c584f5abd2b9aa70aad5;hpb=c31b9542c58ae1cbfae7ec3ba4911359fd010ba2 diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index 3625e074f..813320eb8 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -36,8 +36,8 @@ using std::back_inserter; using boost::shared_ptr; using boost::optional; -VideoDecoder::VideoDecoder (Decoder* parent, shared_ptr c, shared_ptr log) - : DecoderPart (parent, log) +VideoDecoder::VideoDecoder (Decoder* parent, shared_ptr c) + : DecoderPart (parent) , _content (c) { @@ -53,7 +53,7 @@ VideoDecoder::VideoDecoder (Decoder* parent, shared_ptr c, shared * and so on. */ void -VideoDecoder::emit (shared_ptr image, Frame frame) +VideoDecoder::emit (shared_ptr film, shared_ptr image, Frame frame) { if (ignore ()) { return; @@ -95,7 +95,7 @@ VideoDecoder::emit (shared_ptr image, Frame frame) DCPOMATIC_ASSERT (false); } - _position = ContentTime::from_frames (frame, _content->active_video_frame_rate ()); + _position = ContentTime::from_frames (frame, _content->active_video_frame_rate(film)); } void