Add background image configuration to swaroop variant.
[dcpomatic.git] / src / lib / hints.cc
index 943991d2bc584f839f2a1eff085218106b35f8cc..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) {