summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-09-18 23:50:32 +0100
committerCarl Hetherington <cth@carlh.net>2012-09-18 23:50:32 +0100
commitb8f81f0270229c3a9d923f47ddad39f6ed73d13a (patch)
tree81026a07d5b031b100a71774a1d3f62122e1b660 /src
parentc23087acc887289f04f927bf7ede352324f4081b (diff)
ReelNumber is sometimes a string, it seems.
Diffstat (limited to 'src')
-rw-r--r--src/subtitle_asset.cc2
-rw-r--r--src/subtitle_asset.h3
-rw-r--r--src/xml.cc1
3 files changed, 3 insertions, 3 deletions
diff --git a/src/subtitle_asset.cc b/src/subtitle_asset.cc
index 0d89546e..1df4496a 100644
--- a/src/subtitle_asset.cc
+++ b/src/subtitle_asset.cc
@@ -31,7 +31,7 @@ SubtitleAsset::SubtitleAsset (string directory, string xml)
{
_subtitle_id = string_child ("SubtitleID");
_movie_title = string_child ("MovieTitle");
- _reel_number = int64_child ("ReelNumber");
+ _reel_number = string_child ("ReelNumber");
_language = string_child ("Language");
ignore_child ("LoadFont");
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h
index 4d62bfb4..d02e364c 100644
--- a/src/subtitle_asset.h
+++ b/src/subtitle_asset.h
@@ -220,7 +220,8 @@ private:
std::string _subtitle_id;
std::string _movie_title;
- int64_t _reel_number;
+ /* strangely, this is sometimes a string */
+ std::string _reel_number;
std::string _language;
std::list<boost::shared_ptr<LoadFontNode> > _load_font_nodes;
diff --git a/src/xml.cc b/src/xml.cc
index 839717d8..22e91ac0 100644
--- a/src/xml.cc
+++ b/src/xml.cc
@@ -116,7 +116,6 @@ XMLNode::optional_int64_child (string name)
float
XMLNode::float_child (string name)
{
- cout << "float node of " << string_child(name) << " for " << name << "\n";
return lexical_cast<float> (string_child (name));
}