When distinguishing MediaFormats, takes into account their clock rate as well because the encoding String isn't unique.

cusax-fix
Lyubomir Marinov 16 years ago
parent 6db14f047e
commit 9db0d3e79d

@ -567,8 +567,8 @@ private int compareEncodingPreferences(MediaFormat enc1, MediaFormat enc2)
if (res == 0)
{
res = enc1.getEncoding().compareTo(enc2.getEncoding());
// if (res == 0)
// res = Double.compare(enc1.getClockRate(), enc2.getClockRate());
if (res == 0)
res = Double.compare(enc1.getClockRate(), enc2.getClockRate());
}
return res;
}

Loading…
Cancel
Save