mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 419588 followup - add missing condition in the media fragment parsing loop. r=seth
This commit is contained in:
parent
ecd587a4ad
commit
c36fa9dd0d
@ -366,7 +366,7 @@ void nsMediaFragmentURIParser::Parse(nsACString& aRef)
|
||||
// Parse the media fragment values.
|
||||
bool gotTemporal = false, gotSpatial = false, gotResolution = false;
|
||||
for (int i = fragments.Length() - 1 ; i >= 0 ; --i) {
|
||||
if (gotTemporal && gotSpatial) {
|
||||
if (gotTemporal && gotSpatial && gotResolution) {
|
||||
// We've got one of each possible type. No need to look at the rest.
|
||||
break;
|
||||
} else if (!gotTemporal && fragments[i].first.EqualsLiteral("t")) {
|
||||
|
Loading…
Reference in New Issue
Block a user