diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-04 15:58:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-04 15:58:22 +0000 |
| commit | 4fb0a5ab9eebc0f07981edc3a6813102520b8233 (patch) | |
| tree | 4651bda7e99e3214ce5af2a21e33141d7f308e4a /src/lib/decoder.cc | |
| parent | c4362a7aa94d9340e38021a67a85635fc6cd4f7d (diff) | |
Various work on range setting.
Diffstat (limited to 'src/lib/decoder.cc')
| -rw-r--r-- | src/lib/decoder.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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()); } } |
