summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-05-14 09:06:43 -0700
committerAndroid Code Review <code-review@android.com>2010-05-14 09:06:43 -0700
commit75e181b633ec94dde4a5a62d28040289ad645e74 (patch)
treeff83aec67782f1e5be42694cfbb1aa5c883a9ab8
parent1b44ebda7062e204993e930cf073130ce8799f62 (diff)
parentebcc51d39c340f6fdafa828bb0fe715ffaa8658d (diff)
downloadframeworks_base-75e181b633ec94dde4a5a62d28040289ad645e74.zip
frameworks_base-75e181b633ec94dde4a5a62d28040289ad645e74.tar.gz
frameworks_base-75e181b633ec94dde4a5a62d28040289ad645e74.tar.bz2
Merge "Accept media files by file extension in case insensitive manner."
-rw-r--r--media/libmediaplayerservice/MediaPlayerService.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
}