summaryrefslogtreecommitdiff
path: root/src/web_vtt_reader.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-06 11:32:26 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-07 01:03:23 +0100
commitba0d345e3a986ea07398c1a9abe8d5263a870318 (patch)
tree696dee2990c708a913cc165dc9ba1691e225bd6b /src/web_vtt_reader.cc
parent75d997393de1a89f648ac9e7f3122a316640b595 (diff)
Throw a specific exception when no WEBVTT header is found.v1.6.47
Diffstat (limited to 'src/web_vtt_reader.cc')
-rw-r--r--src/web_vtt_reader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web_vtt_reader.cc b/src/web_vtt_reader.cc
index cd6844d..4618466 100644
--- a/src/web_vtt_reader.cc
+++ b/src/web_vtt_reader.cc
@@ -86,7 +86,7 @@ WebVTTReader::read(std::function<optional<string> ()> get_line)
switch (state) {
case State::HEADER:
if (!boost::starts_with(*line, "WEBVTT")) {
- throw WebVTTError("No WEBVTT header found");
+ throw WebVTTHeaderError();
}
state = State::DATA;
break;