Cleanup: remove unused method.
[dcpomatic.git] / src / lib / dcp_subtitle_decoder.cc
index 08c2bf7ec3642a86f687d9d4d24e6f7cbeaa663c..b3e6d75531bcbf4fd86ffd0d812aae9558048f19 100644 (file)
 
 #include "dcp_subtitle_content.h"
 #include "dcp_subtitle_decoder.h"
+#include "film.h"
 #include "font.h"
 #include "text_content.h"
+#include "util.h"
 #include <dcp/interop_subtitle_asset.h>
 #include <dcp/load_font_node.h>
 
@@ -46,6 +48,8 @@ DCPSubtitleDecoder::DCPSubtitleDecoder (shared_ptr<const Film> film, shared_ptr<
        _subtitles = asset->subtitles ();
        _next = _subtitles.begin ();
 
+       _subtitle_standard = asset->subtitle_standard();
+
        text.push_back (make_shared<TextDecoder>(this, content->only_text()));
        update_position();
 }
@@ -102,7 +106,7 @@ DCPSubtitleDecoder::pass ()
                }
        }
 
-       only_text()->emit_plain (p, s);
+       only_text()->emit_plain(p, s, _subtitle_standard);
 
        update_position();