reverted the feature statement, meant to be a not()

This commit is contained in:
Vadim Getmanshchuk 2023-02-14 11:43:51 -06:00
parent 663e0607cf
commit b7c2cb023d

View file

@ -468,7 +468,7 @@ impl AlternativeMedia {
let default = is_yes!(attrs, "DEFAULT");
let autoselect = is_yes!(attrs, "AUTOSELECT");
#[cfg(feature = "lenient")]
#[cfg(not(feature = "lenient"))]
if media_type != AlternativeMediaType::Subtitles && attrs.contains_key("FORCED") {
return Err(String::from(
"FORCED attribute must not be included in non-SUBTITLE Alternative Medias",