summaryrefslogtreecommitdiff
path: root/src/lib/decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-11-05 10:49:40 +0000
committerCarl Hetherington <cth@carlh.net>2012-11-05 10:49:40 +0000
commita3c9e023a80acebd47eb551f1ca0f3b5ab542915 (patch)
tree1d75221b11e38184dd732451d06281d5fe5de844 /src/lib/decoder.cc
parent0ffc3e2b6b784eb8ae7e7581c3ab53b2913c0a78 (diff)
Fix crash.
Diffstat (limited to 'src/lib/decoder.cc')
-rw-r--r--src/lib/decoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/decoder.cc b/src/lib/decoder.cc
index 347c5dbbb..c9d8f063a 100644
--- a/src/lib/decoder.cc
+++ b/src/lib/decoder.cc
@@ -141,7 +141,7 @@ Decoder::go ()
}
while (pass () == false) {
- if (_job) {
+ if (_job && _film->dcp_length()) {
_job->set_progress (float (_video_frame) / _film->length().get());
}
}