summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-29 11:57:08 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-29 11:57:08 +0100
commitaebf2cb7812c8f593b85182611b587e6014aefc6 (patch)
treec954ebc0cf39263b6c051e159f48e177cafae310 /tools
parent8b1958988ca234f51ec99385d81b95c1f0f092af (diff)
Re-work Subtitle class; remove STL text writer.
Diffstat (limited to 'tools')
-rw-r--r--tools/dumpsubs.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/dumpsubs.cc b/tools/dumpsubs.cc
index b37203d..9ee890d 100644
--- a/tools/dumpsubs.cc
+++ b/tools/dumpsubs.cc
@@ -83,7 +83,9 @@ main (int argc, char* argv[])
list<sub::Subtitle> subs = reader->subtitles ();
for (list<sub::Subtitle>::const_iterator i = subs.begin(); i != subs.end(); ++i) {
- cout << i->text << "\n";
+ for (list<sub::Block>::const_iterator j = i->blocks.begin(); j != i->blocks.end(); ++j) {
+ cout << j->text << "\n";
+ }
}
return 0;