merge from open-source master

Change-Id: I934cf85c4673f9ca3a9549c2074907ad572310f4
This commit is contained in:
The Android Open Source Project
2010-05-14 09:44:36 -07:00

View File

@@ -758,7 +758,7 @@ player_type getPlayerType(const char* url)
int len = strlen(FILE_EXTS[i].extension);
int start = lenURL - len;
if (start > 0) {
if (!strncmp(url + start, FILE_EXTS[i].extension, len)) {
if (!strncasecmp(url + start, FILE_EXTS[i].extension, len)) {
if (FILE_EXTS[i].playertype == VORBIS_PLAYER
&& !strncasecmp(url, "http://", 7)
&& useStagefrightForHTTP) {