Fix crash.
authorCarl Hetherington <cth@carlh.net>
Mon, 5 Nov 2012 10:49:40 +0000 (10:49 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 5 Nov 2012 10:49:40 +0000 (10:49 +0000)
src/lib/decoder.cc

index 347c5dbbb909521f1349f346dce7922c73cc5622..c9d8f063a3ea27e97bece3158cd3eba82c3969a5 100644 (file)
@@ -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());
                }
        }