diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-14 15:13:48 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-14 15:13:48 +0000 |
| commit | 972d33c500c9de02aa007440f665637e455610c1 (patch) | |
| tree | 5956c54b3b97ab10b61fd1383cfd12de15959214 /src/subrip_reader.cc | |
| parent | 65244fb9190e6d0aefc83c9cc4de83b1df18001d (diff) | |
Forward-port some stuff from 0.x.
Diffstat (limited to 'src/subrip_reader.cc')
| -rw-r--r-- | src/subrip_reader.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/subrip_reader.cc b/src/subrip_reader.cc index 557a250..0aba120 100644 --- a/src/subrip_reader.cc +++ b/src/subrip_reader.cc @@ -83,9 +83,6 @@ SubripReader::SubripReader (FILE* f) } case CONTENT: if (line.empty ()) { - /* XXX: I think this line_number should be set to some sensible value and TOP_OF_SUBTITLE - should not be used. - */ state = COUNTER; line_number = 0; } else { @@ -135,6 +132,8 @@ SubripReader::convert_line (string t, int line_number, TimePair from, TimePair t p.from = from; p.to = to; p.vertical_position.line = line_number; + /* XXX: arbitrary */ + p.vertical_position.lines = 32; p.vertical_position.reference = TOP_OF_SUBTITLE; /* XXX: missing <font> support */ |
