Basics of multiple captions per content so that DCPContent can
[dcpomatic.git] / src / tools / dcpomatic_player.cc
index 0af44fd05d2dd27a89800c13c057a43f6d48d1cd..d357e566b4aecd2fae832c2bb0bedfe044408663 100644 (file)
@@ -618,8 +618,11 @@ private:
 
        void setup_from_dcp (shared_ptr<DCPContent> dcp)
        {
-               if (dcp->caption) {
-                       dcp->caption->set_use (true);
+               BOOST_FOREACH (shared_ptr<CaptionContent> i, dcp->caption) {
+                       /* XXX: we should offer the option to view closed captions */
+                       if (i->type() == CAPTION_OPEN) {
+                               i->set_use (true);
+                       }
                }
 
                if (dcp->video) {