Add load button for SPL.
[dcpomatic.git] / src / lib / dcp_subtitle_decoder.cc
index 46256e93ef43f6d57607693f723658414b0d414e..9c803a3b61d012a965fcfece5d4a7ed675b70b38 100644 (file)
@@ -39,7 +39,7 @@ DCPSubtitleDecoder::DCPSubtitleDecoder (shared_ptr<const DCPSubtitleContent> con
        if (_next != _subtitles.end()) {
                first = content_time_period(*_next).from;
        }
-       subtitle.reset (new SubtitleDecoder (this, content->subtitle, log, first));
+       text.push_back (shared_ptr<TextDecoder> (new TextDecoder (this, content->only_text(), log, first)));
 }
 
 void
@@ -63,8 +63,8 @@ DCPSubtitleDecoder::pass ()
 
        /* Gather all subtitles with the same time period that are next
           on the list.  We must emit all subtitles for the same time
-          period with the same text_subtitle() call otherwise the
-          SubtitleDecoder will assume there is nothing else at the
+          period with the same plain_text() call otherwise the
+          TextDecoder will assume there is nothing else at the
           time of emit the first.
        */
 
@@ -81,7 +81,7 @@ DCPSubtitleDecoder::pass ()
                /* XXX: image subtitles */
        }
 
-       subtitle->emit_text (p, s);
+       only_text()->emit_plain (p, s);
        return false;
 }