diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-11-03 15:12:24 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-11-03 15:12:24 +0000 |
| commit | 87598cd97615260163ed589195e997d69819be57 (patch) | |
| tree | 2a2a9369ed314d4d6225edcc0aff894179ba9fa3 /src/subtitle_asset.cc | |
| parent | b691a2b86733030a984f5bc9c99bdb7395e3bb01 (diff) | |
Don't complain if there is no Vposition on a subtitle <Text> node.
Diffstat (limited to 'src/subtitle_asset.cc')
| -rw-r--r-- | src/subtitle_asset.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc index 8e741a4e..cc2e7bae 100644 --- a/src/subtitle_asset.cc +++ b/src/subtitle_asset.cc @@ -85,9 +85,7 @@ SubtitleAsset::read_mxf (string mxf_file) string s; reader.ReadTimedTextResource (s, 0, 0); shared_ptr<cxml::Document> xml (new cxml::Document ("SubtitleReel")); - stringstream t; - t << s; - xml->read_stream (t); + xml->read_string (s); read_xml (xml, true); } @@ -495,4 +493,3 @@ SubtitleAsset::xml_as_string () const return doc.write_to_string_formatted ("UTF-8"); } - |
