Accept media files by file extension in case insensitive manner.
Change-Id: I8e246010c96802ae87960797607fc8f8f2ab6031
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user