diff options
author | Atsushi Eno <atsushieno+android@gmail.com> | 2010-03-19 23:18:02 +0900 |
---|---|---|
committer | Atsushi Eno <atsushieno+android@gmail.com> | 2010-03-19 23:18:02 +0900 |
commit | ebcc51d39c340f6fdafa828bb0fe715ffaa8658d (patch) | |
tree | b7dbf0fff30be95c14d8978f5a979ec8270b22a6 | |
parent | 239750ff8ee5424d792cb21a99311d95589cc8e1 (diff) | |
download | frameworks_base-ebcc51d39c340f6fdafa828bb0fe715ffaa8658d.zip frameworks_base-ebcc51d39c340f6fdafa828bb0fe715ffaa8658d.tar.gz frameworks_base-ebcc51d39c340f6fdafa828bb0fe715ffaa8658d.tar.bz2 |
Accept media files by file extension in case insensitive manner.
Change-Id: I8e246010c96802ae87960797607fc8f8f2ab6031
-rw-r--r-- | media/libmediaplayerservice/MediaPlayerService.cpp | 2 |
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; } } |