diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-08-29 20:21:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-08-29 20:21:26 +0100 |
| commit | cb92077b0a6730f1d71931300ad293e29185c47d (patch) | |
| tree | 5a6d540b09d5ee177300e61994db26bc9cb5061a /src/subtitle_asset.cc | |
| parent | b2c879b0ef98958bb706d5c519ed4dbf0dd23619 (diff) | |
Change to libcxml API.
Diffstat (limited to 'src/subtitle_asset.cc')
| -rw-r--r-- | src/subtitle_asset.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc index d7cb94a5..866a6d25 100644 --- a/src/subtitle_asset.cc +++ b/src/subtitle_asset.cc @@ -56,7 +56,8 @@ SubtitleAsset::SubtitleAsset (string directory, string movie_title, string langu void SubtitleAsset::read_xml (string xml_file) { - shared_ptr<cxml::File> xml (new cxml::File (xml_file, "DCSubtitle")); + shared_ptr<cxml::Document> xml (new cxml::Document ("DCSubtitle")); + xml->read_file (xml_file); _uuid = xml->string_child ("SubtitleID"); _movie_title = xml->string_child ("MovieTitle"); |
