From 21ce34c2cd04a2e7e133ff693b84c054182f4f91 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 16 May 2013 08:36:47 +0100 Subject: Compiles; strange hang on adding content to a film. --- src/lib/video_decoder.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/video_decoder.cc') diff --git a/src/lib/video_decoder.cc b/src/lib/video_decoder.cc index fd8238441..a24059da2 100644 --- a/src/lib/video_decoder.cc +++ b/src/lib/video_decoder.cc @@ -79,7 +79,7 @@ VideoDecoder::set_progress (Job* j) const { assert (j); - if (_film->video_length()) { - j->set_progress (float (_video_frame) / _film->video_length()); + if (_film->length()) { + j->set_progress (float (_video_frame) / _film->time_to_video_frames (_film->length())); } } -- cgit v1.2.3