summaryrefslogtreecommitdiff
path: root/src/stl_binary_writer.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-01-07 23:51:08 +0000
committerCarl Hetherington <cth@carlh.net>2015-01-07 23:51:08 +0000
commitd65ae002711e5c82ea4e382b577b2314944e1dbd (patch)
treecbe0aa0336d700d170e891a34ce97bdc2c9fb7c7 /src/stl_binary_writer.cc
parent9361d68621cc45bc8a13c9eebe7fee1b405a3e0e (diff)
Possibly fix subtitle numbering for binary STL.
Diffstat (limited to 'src/stl_binary_writer.cc')
-rw-r--r--src/stl_binary_writer.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stl_binary_writer.cc b/src/stl_binary_writer.cc
index fcdc5fe..b9ad86f 100644
--- a/src/stl_binary_writer.cc
+++ b/src/stl_binary_writer.cc
@@ -192,8 +192,8 @@ sub::write_stl_binary (
output.write (buffer, 1024);
- int N = 0;
for (list<Subtitle>::const_iterator i = subtitles.begin(); i != subtitles.end(); ++i) {
+ int N = 0;
for (list<Line>::const_iterator j = i->lines.begin(); j != i->lines.end(); ++j) {
memset (buffer, 0, 1024);
@@ -293,6 +293,8 @@ sub::write_stl_binary (
put_string (buffer + 16, text);
output.write (buffer, 128);
+
+ ++N;
}
}