Re-work FilmState / Film relationship a bit; Film now inherits from FilmState and...
[dcpomatic.git] / src / lib / check_hashes_job.cc
index f07a5ab2accaf9d98172bbb2ba9da7cd213b0516..d64ccc866b921412dfc45d99729a35651322781b 100644 (file)
@@ -41,7 +41,7 @@ CheckHashesJob::CheckHashesJob (shared_ptr<const FilmState> s, shared_ptr<const
 string
 CheckHashesJob::name () const
 {
-       return String::compose ("Check hashes of %1", _fs->name);
+       return String::compose ("Check hashes of %1", _fs->name());
 }
 
 void
@@ -66,13 +66,13 @@ CheckHashesJob::run ()
                        ++_bad;
                }
 
-               set_progress (float (i) / _fs->length);
+               set_progress (float (i) / _fs->length());
        }
 
        if (_bad) {
                shared_ptr<Job> tc;
 
-               if (_fs->dcp_ab) {
+               if (_fs->dcp_ab()) {
                        tc.reset (new ABTranscodeJob (_fs, _opt, _log, shared_from_this()));
                } else {
                        tc.reset (new TranscodeJob (_fs, _opt, _log, shared_from_this()));