diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-11-26 11:15:02 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-11-26 11:15:02 +0000 |
| commit | d645196b8d6fec1da6c69b28fa9ac2c445a58bd1 (patch) | |
| tree | d430b0a1d85309c28f46c384cbe8b08e9c3c123b /src/subtitle_asset.cc | |
| parent | ea629ead13e819b4ff5d5b5eba7b57520e8107e3 (diff) | |
Allow <Subtitle> nodes as the root of subtitles, not just <Font>
Diffstat (limited to 'src/subtitle_asset.cc')
| -rw-r--r-- | src/subtitle_asset.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc index 414825a4..3dcc9ad6 100644 --- a/src/subtitle_asset.cc +++ b/src/subtitle_asset.cc @@ -59,11 +59,16 @@ SubtitleAsset::SubtitleAsset (boost::filesystem::path file) } void -SubtitleAsset::parse_subtitles (shared_ptr<cxml::Document> xml, list<shared_ptr<dcp::FontNode> > font_nodes) +SubtitleAsset::parse_subtitles ( + shared_ptr<cxml::Document> xml, + list<shared_ptr<dcp::FontNode> > font_nodes, + list<shared_ptr<dcp::SubtitleNode> > subtitle_nodes + ) { /* Make Subtitle objects to represent the raw XML nodes in a sane way */ ParseState parse_state; examine_font_nodes (xml, font_nodes, parse_state); + examine_subtitle_nodes (xml, subtitle_nodes, parse_state); } void |
