diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-09-20 21:07:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-09-20 21:07:57 +0100 |
| commit | 79e49c267f3e51126ad7d6c936de2da5455a9894 (patch) | |
| tree | 3dccc85f0017c88e69d7a192769c7ae26a6e027e /src/subrip_reader.h | |
| parent | f36f586f6e66c7b9414f49524a7c565b7ccce4cc (diff) | |
Give a more informative exception on SubRip parse failures.
Diffstat (limited to 'src/subrip_reader.h')
| -rw-r--r-- | src/subrip_reader.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/subrip_reader.h b/src/subrip_reader.h index 5f5f343..138d703 100644 --- a/src/subrip_reader.h +++ b/src/subrip_reader.h @@ -44,10 +44,12 @@ private: friend struct ::subrip_reader_convert_time_test; SubripReader () {} - static Time convert_time (std::string t); + Time convert_time (std::string t); void convert_line (std::string t, RawSubtitle& p); void maybe_content (RawSubtitle& p); void read (boost::function<boost::optional<std::string> ()> get_line); + + std::list<std::string> _context; }; } |
