From ebcc51d39c340f6fdafa828bb0fe715ffaa8658d Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Fri, 19 Mar 2010 23:18:02 +0900 Subject: Accept media files by file extension in case insensitive manner. Change-Id: I8e246010c96802ae87960797607fc8f8f2ab6031 --- media/libmediaplayerservice/MediaPlayerService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'media') 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; } } -- cgit v1.1