diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-09 14:06:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-09 14:06:41 +0100 |
| commit | 70bd2d59775cf0e3d3bacac03bf07e6101860d5f (patch) | |
| tree | fc0f8d8fb7296097e0345d2338151b45e62660e4 /src | |
| parent | 5767fadfaf19a3a5c7056c0aed35550fe9dc9f1d (diff) | |
Don't fill in vertical_position.lines with an arbitrary value.
Diffstat (limited to 'src')
| -rw-r--r-- | src/stl_text_reader.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/stl_text_reader.cc b/src/stl_text_reader.cc index c4c1090..c7b1fcf 100644 --- a/src/stl_text_reader.cc +++ b/src/stl_text_reader.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net> + Copyright (C) 2014-2016 Carl Hetherington <cth@carlh.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -39,10 +39,11 @@ using namespace sub; STLTextReader::STLTextReader (istream& in) { + /* This reader extracts no information about where the subtitle + should be on screen, so its reference is TOP_OF_SUBTITLE. + */ _subtitle.vertical_position.line = 0; - /* XXX: no idea what this should be */ - _subtitle.vertical_position.lines = 32; - _subtitle.vertical_position.reference = TOP_OF_SCREEN; + _subtitle.vertical_position.reference = TOP_OF_SUBTITLE; while (in.good ()) { string line; |
