summaryrefslogtreecommitdiff
path: root/src/lib/player.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-25 10:50:19 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-25 10:50:19 +0100
commit4a5fcd19ca16447ba8b204986a378072a9c730b2 (patch)
treeaf96095183aff5d1331b370283f6623570d5ff65 /src/lib/player.cc
parente2d0781d45fccd67649a8943f1fb45442f5d2cbc (diff)
Make burnt-in subtitle outline width configurable (#940).
Diffstat (limited to 'src/lib/player.cc')
-rw-r--r--src/lib/player.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index 07bb097c2..10c92c073 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -183,6 +183,7 @@ Player::playlist_content_changed (weak_ptr<Content> w, int property, bool freque
} else if (
property == SubtitleContentProperty::LINE_SPACING ||
+ property == SubtitleContentProperty::OUTLINE_WIDTH ||
property == SubtitleContentProperty::Y_SCALE
) {
@@ -648,7 +649,7 @@ Player::get_subtitles (DCPTime time, DCPTime length, bool starting, bool burnt,
}
s.set_in (dcp::Time(content_subtitle_to_dcp (*j, ts.period().from).seconds(), 1000));
s.set_out (dcp::Time(content_subtitle_to_dcp (*j, ts.period().to).seconds(), 1000));
- ps.text.push_back (s);
+ ps.text.push_back (SubtitleString (s, (*j)->content->subtitle->outline_width()));
ps.add_fonts ((*j)->content->subtitle->fonts ());
}
}