From 4c987f7feb504fe4011b52ffeb231e3b25823de1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 13 Aug 2012 01:45:42 +0100 Subject: Basic subtitle test works. --- src/subtitle_asset.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/subtitle_asset.cc') diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc index 19697a7f..ca27d6da 100644 --- a/src/subtitle_asset.cc +++ b/src/subtitle_asset.cc @@ -44,11 +44,14 @@ Font::Font (xmlpp::Node const * node) Subtitle::Subtitle (xmlpp::Node const * node) : XMLNode (node) { + _in = time_attribute ("TimeIn"); + _out = time_attribute ("TimeOut"); _texts = sub_nodes ("Text"); } Text::Text (xmlpp::Node const * node) : XMLNode (node) { - + _text = content (); + _v_position = float_attribute ("VPosition"); } -- cgit v1.2.3