From 775ae0e37bbec115d742feade0adc614a9a2301c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 13 Apr 2016 16:34:22 +0100 Subject: Subtitle rearrangements. --- src/lib/text_subtitle_decoder.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/lib/text_subtitle_decoder.cc') diff --git a/src/lib/text_subtitle_decoder.cc b/src/lib/text_subtitle_decoder.cc index 36e44cc99..94604cd71 100644 --- a/src/lib/text_subtitle_decoder.cc +++ b/src/lib/text_subtitle_decoder.cc @@ -19,6 +19,7 @@ #include "text_subtitle_decoder.h" #include "text_subtitle_content.h" +#include "subtitle_content.h" #include #include #include @@ -60,9 +61,6 @@ TextSubtitleDecoder::pass (PassReason, bool) /* XXX: we are ignoring positioning specified in the file */ - shared_ptr content = dynamic_pointer_cast (_subtitle_content); - DCPOMATIC_ASSERT (content); - list out; /* Highest line index in this subtitle */ @@ -81,7 +79,7 @@ TextSubtitleDecoder::pass (PassReason, bool) j.italic, j.bold, /* force the colour to whatever is configured */ - content->colour(), + _subtitle_content->colour(), j.font_size.points (72 * 11), 1.0, dcp::Time (_subtitles[_next].from.all_as_seconds(), 1000), @@ -95,8 +93,8 @@ TextSubtitleDecoder::pass (PassReason, bool) dcp::VALIGN_TOP, dcp::DIRECTION_LTR, j.text, - content->outline() ? dcp::BORDER : dcp::NONE, - content->outline_colour(), + _subtitle_content->outline() ? dcp::BORDER : dcp::NONE, + _subtitle_content->outline_colour(), dcp::Time (0, 1000), dcp::Time (0, 1000) ) -- cgit v1.2.3