X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fdcp_examiner.cc;h=c70d8b2dbc9172966e400ce8451c9a0ed6168493;hb=2e9744b7c79a0e56193b48bd0760a7b989f06079;hp=dfb47f2ebf6d1f009e9476620e4c708ea84591c4;hpb=641a81bf7ad436853525d734c0d41a0f1365ecd3;p=dcpomatic.git diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc index dfb47f2eb..c70d8b2db 100644 --- a/src/lib/dcp_examiner.cc +++ b/src/lib/dcp_examiner.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2019 Carl Hetherington This file is part of DCP-o-matic. @@ -66,7 +66,7 @@ DCPExaminer::DCPExaminer (shared_ptr content) shared_ptr cpl; for (int i = 0; i < TEXT_COUNT; ++i) { - _has_text[i] = false; + _text_count[i] = 0; } if (content->cpl ()) { @@ -170,7 +170,7 @@ DCPExaminer::DCPExaminer (shared_ptr content) return; } - _has_text[TEXT_OPEN_SUBTITLE] = true; + _text_count[TEXT_OPEN_SUBTITLE] = 1; } BOOST_FOREACH (shared_ptr j, i->closed_captions()) { @@ -180,7 +180,7 @@ DCPExaminer::DCPExaminer (shared_ptr content) return; } - _has_text[TEXT_CLOSED_CAPTION] = true; + _text_count[TEXT_CLOSED_CAPTION]++; } if (i->main_picture()) {