Express standard differences in FontNode more neatly.
[libdcp.git] / src / smpte_subtitle_asset.cc
index 685b4fc7e4cff32f2ce7a293db64effee8554dc9..2a6a50933ddad09c8f441006340d3508a2a5141d 100644 (file)
@@ -134,12 +134,12 @@ SMPTESubtitleAsset::SMPTESubtitleAsset (boost::filesystem::path file)
 
        list<shared_ptr<dcp::FontNode> > font_nodes;
        BOOST_FOREACH (cxml::NodePtr const & i, subtitle_list->node_children ("Font")) {
-               font_nodes.push_back (shared_ptr<FontNode> (new FontNode (i, _time_code_rate, "ID")));
+               font_nodes.push_back (shared_ptr<FontNode> (new FontNode (i, _time_code_rate, SMPTE)));
        }
 
        list<shared_ptr<dcp::SubtitleNode> > subtitle_nodes;
        BOOST_FOREACH (cxml::NodePtr const & i, subtitle_list->node_children ("Subtitle")) {
-               subtitle_nodes.push_back (shared_ptr<SubtitleNode> (new SubtitleNode (i, _time_code_rate, "ID")));
+               subtitle_nodes.push_back (shared_ptr<SubtitleNode> (new SubtitleNode (i, _time_code_rate, SMPTE)));
        }
 
        parse_subtitles (xml, font_nodes, subtitle_nodes);