diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-14 00:26:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-14 00:39:51 +0100 |
| commit | e82c83b35e7638957f3d80b12d4c59c17436473a (patch) | |
| tree | 3f9e7345f752993985dd65b140dc9ed7545b4a0a /src/lib/string_text_file.cc | |
| parent | c2f74bf15f6f2a88138119a42a44f4241169f6e5 (diff) | |
Basic WebVTT subtitle support (#1361).
Diffstat (limited to 'src/lib/string_text_file.cc')
| -rw-r--r-- | src/lib/string_text_file.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/string_text_file.cc b/src/lib/string_text_file.cc index 76abe547f..869a2c96a 100644 --- a/src/lib/string_text_file.cc +++ b/src/lib/string_text_file.cc @@ -28,6 +28,7 @@ #include <sub/ssa_reader.h> #include <sub/stl_binary_reader.h> #include <sub/subrip_reader.h> +#include <sub/web_vtt_reader.h> #include <unicode/ucsdet.h> #include <unicode/ucnv.h> #include <iostream> @@ -105,6 +106,8 @@ StringTextFile::StringTextFile (shared_ptr<const StringTextFileContent> content) reader.reset(new sub::SubripReader(utf8.get())); } else if (ext == ".ssa" || ext == ".ass") { reader.reset(new sub::SSAReader(utf8.get())); + } else if (ext == ".vtt") { + reader.reset(new sub::WebVTTReader(utf8.get())); } } |
