summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-28 11:50:15 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-28 11:50:15 +0100
commitcd0958260b54af3514ac12b936bb76ca6de6978b (patch)
treea06591bfc901d950290e6c3ba2aad1dcf123921e /tools
parent14fa24a1aabda7925f4842ab7f7e13c1798182a4 (diff)
More STL binary reading stuff.
Diffstat (limited to 'tools')
-rw-r--r--tools/dumpsubs.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/dumpsubs.cc b/tools/dumpsubs.cc
index 6213da0..b37203d 100644
--- a/tools/dumpsubs.cc
+++ b/tools/dumpsubs.cc
@@ -27,6 +27,7 @@ using std::string;
using std::cerr;
using std::cout;
using std::map;
+using std::list;
using boost::shared_ptr;
using namespace sub;
@@ -80,5 +81,10 @@ main (int argc, char* argv[])
cout << i->first << ": " << i->second << "\n";
}
+ list<sub::Subtitle> subs = reader->subtitles ();
+ for (list<sub::Subtitle>::const_iterator i = subs.begin(); i != subs.end(); ++i) {
+ cout << i->text << "\n";
+ }
+
return 0;
}