Bug 820661 - Implement support for libstagefright video decoding on HTC EVO Design Gingerbread Android phone - r=cpeterson

--HG--
extra : rebase_source : 366ebc9e9a3867edab439069094f21b8c8204174
This commit is contained in:
Chris Double 2012-12-13 11:56:01 +13:00
Родитель 57335b0ed0
Коммит 0d0d698c0e
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -175,6 +175,12 @@ static const char* GetOmxLibraryName()
// layout to those on 2.3.5 and below. // layout to those on 2.3.5 and below.
return "lib/libomxplugingb.so"; return "lib/libomxplugingb.so";
} }
else if (version == 10 && release_version >= NS_LITERAL_STRING("2.3.4") &&
device.Find("HTC") == 0) {
// HTC devices running Gingerbread 2.3.4+ (HTC Desire HD, HTC Evo Design, etc) seem to
// use a newer version of Gingerbread libstagefright than other 2.3.4 devices.
return "lib/libomxplugingb.so";
}
else if (version == 9 || (version == 10 && release_version <= NS_LITERAL_STRING("2.3.5"))) { else if (version == 9 || (version == 10 && release_version <= NS_LITERAL_STRING("2.3.5"))) {
// Gingerbread versions from 2.3.5 and below have a different DataSource // Gingerbread versions from 2.3.5 and below have a different DataSource
// than 2.3.6 and above. // than 2.3.6 and above.