From 8e3e8d3e8eeaf238ff8890098d5b4d25b0342edf Mon Sep 17 00:00:00 2001 From: Vishal Shah Date: Tue, 19 Jan 2021 12:45:20 -0700 Subject: [PATCH] [WEBVTT] Support both center and middle text alignments Fixes #882. --- packager/media/formats/webvtt/webvtt_parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packager/media/formats/webvtt/webvtt_parser.cc b/packager/media/formats/webvtt/webvtt_parser.cc index 7dfbcb3de1..09e8e1c107 100644 --- a/packager/media/formats/webvtt/webvtt_parser.cc +++ b/packager/media/formats/webvtt/webvtt_parser.cc @@ -176,7 +176,7 @@ void ParseSettings(const std::string& id, } else if (id == "align") { if (value == "start") { settings->text_alignment = TextAlignment::kStart; - } else if (value == "center") { + } else if (value == "center" || value == "middle") { settings->text_alignment = TextAlignment::kCenter; } else if (value == "end") { settings->text_alignment = TextAlignment::kEnd;