Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save atsushieno/319454 to your computer and use it in GitHub Desktop.
Save atsushieno/319454 to your computer and use it in GitHub Desktop.
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp
index df673a4..49032e7 100644
--- a/media/libmediaplayerservice/MediaPlayerService.cpp
+++ b/media/libmediaplayerservice/MediaPlayerService.cpp
@@ -682,7 +682,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)) {
return FILE_EXTS[i].playertype;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment