Manual tweaks.
[dcpomatic.git] / src / lib / hints.cc
index e11312eb03fa7a37d048484b539f7acbed7a613a..185626983ac171538f24cfcbb4f87edcdc7f0e41 100644 (file)
@@ -266,7 +266,7 @@ Hints::thread ()
        shared_ptr<Player> player (new Player (film, film->playlist ()));
        player->set_ignore_video ();
        player->set_ignore_audio ();
-       player->Text.connect (bind(&Hints::text, this, _1, _2, _3));
+       player->Text.connect (bind(&Hints::text, this, _1, _2, _4));
        while (!player->pass ()) {
                bind (boost::ref(Pulse));
        }
@@ -287,8 +287,8 @@ Hints::text (PlayerText text, TextType type, DCPTimePeriod period)
                return;
        }
 
-       int lines = text.text.size();
-       BOOST_FOREACH (StringText i, text.text) {
+       int lines = text.string.size();
+       BOOST_FOREACH (StringText i, text.string) {
                if (i.text().length() > CLOSED_CAPTION_LENGTH) {
                        ++lines;
                        if (!_long_ccap) {
@@ -305,7 +305,7 @@ Hints::text (PlayerText text, TextType type, DCPTimePeriod period)
 
        if (!_overlap_ccap && _last && _last->overlap(period)) {
                _overlap_ccap = true;
-               hint (_("You have overlapping closed captions, which is not allowed."));
+               hint (_("You have overlapping closed captions, which are not allowed."));
        }
 
        _last = period;