#include "dcp_subtitle_decoder.h"
#include "font.h"
#include "text_content.h"
+#include "util.h"
#include <dcp/interop_subtitle_asset.h>
#include <dcp/load_font_node.h>
_subtitles = asset->subtitles ();
_next = _subtitles.begin ();
+ if (dynamic_pointer_cast<dcp::InteropSubtitleAsset>(asset)) {
+ _standard = dcp::Standard::INTEROP;
+ } else {
+ _standard = dcp::Standard::SMPTE;
+ }
+
text.push_back (make_shared<TextDecoder>(this, content->only_text()));
update_position();
}
}
}
- only_text()->emit_plain (p, s);
+ only_text()->emit_plain(p, s, _standard);
update_position();