From 4fb0a5ab9eebc0f07981edc3a6813102520b8233 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 4 Nov 2012 15:58:22 +0000 Subject: Various work on range setting. --- src/lib/decoder.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/decoder.cc') diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc index a8da1ae67..3e210c9cc 100644 --- a/src/lib/decoder.cc +++ b/src/lib/decoder.cc @@ -140,7 +140,8 @@ Decoder::go () while (pass () == false) { if (_job && _film->dcp_length()) { - _job->set_progress (float ((_video_frame_index - _film->dcp_trim_start())) / _film->dcp_length().get()); + SourceFrame const p = _video_frame_index - _film->dcp_trim_start(); + _job->set_progress (float (p) / _film->dcp_length().get()); } } -- cgit v1.2.3