As per issue #1418, several Dash roles are missing from the RoleFromString function, making them unusable in practice. This update should enable them for use. --------- Co-authored-by: John Laurin <john.laurin@svt.se>
This commit is contained in:
parent
b5c2cb8b73
commit
9cb00e91ab
1
AUTHORS
1
AUTHORS
|
@ -39,4 +39,5 @@ Richard Eklycke <richard@eklycke.se>
|
||||||
Sanil Raut <sr1990003@gmail.com>
|
Sanil Raut <sr1990003@gmail.com>
|
||||||
Sergio Ammirata <sergio@ammirata.net>
|
Sergio Ammirata <sergio@ammirata.net>
|
||||||
The Chromium Authors <*@chromium.org>
|
The Chromium Authors <*@chromium.org>
|
||||||
|
Sveriges Television AB <*@svt.se>
|
||||||
|
|
||||||
|
|
|
@ -57,4 +57,5 @@ Tim Lansen <tim.lansen@gmail.com>
|
||||||
Torbjörn Einarsson <torbjorn.einarsson@eyevinn.se>
|
Torbjörn Einarsson <torbjorn.einarsson@eyevinn.se>
|
||||||
Vincent Nguyen <nvincen@amazon.com>
|
Vincent Nguyen <nvincen@amazon.com>
|
||||||
Weiguo Shao <weiguo.shao@dolby.com>
|
Weiguo Shao <weiguo.shao@dolby.com>
|
||||||
|
John Laurin <john.laurin@svt.se>
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,18 @@ AdaptationSet::Role RoleFromString(const std::string& role_str) {
|
||||||
return AdaptationSet::Role::kRoleDub;
|
return AdaptationSet::Role::kRoleDub;
|
||||||
if (role_str == "forced-subtitle")
|
if (role_str == "forced-subtitle")
|
||||||
return AdaptationSet::Role::kRoleForcedSubtitle;
|
return AdaptationSet::Role::kRoleForcedSubtitle;
|
||||||
|
if (role_str == "karaoke")
|
||||||
|
return AdaptationSet::Role::kRoleKaraoke;
|
||||||
|
if (role_str == "sign")
|
||||||
|
return AdaptationSet::Role::kRoleSign;
|
||||||
|
if (role_str == "metadata")
|
||||||
|
return AdaptationSet::Role::kRoleMetadata;
|
||||||
|
if (role_str == "enhanced-audio-intelligibility")
|
||||||
|
return AdaptationSet::Role::kRoleEnhancedAudioIntelligibility;
|
||||||
|
if (role_str == "emergency")
|
||||||
|
return AdaptationSet::Role::kRoleEmergency;
|
||||||
|
if (role_str == "easyreader")
|
||||||
|
return AdaptationSet::Role::kRoleEasyreader;
|
||||||
if (role_str == "description")
|
if (role_str == "description")
|
||||||
return AdaptationSet::Role::kRoleDescription;
|
return AdaptationSet::Role::kRoleDescription;
|
||||||
return AdaptationSet::Role::kRoleUnknown;
|
return AdaptationSet::Role::kRoleUnknown;
|
||||||
|
|
Loading…
Reference in New Issue