resolved conflicts for merge of 0b7bd95d to gingerbread-plus-aosp
Change-Id: I55c1689c7d0737c943efec28d8164d6a5360621c
This commit is contained in:
@@ -81,13 +81,13 @@ status_t MediaScanner::processDirectory(
|
||||
}
|
||||
|
||||
static bool fileMatchesExtension(const char* path, const char* extensions) {
|
||||
char* extension = strrchr(path, '.');
|
||||
const char* extension = strrchr(path, '.');
|
||||
if (!extension) return false;
|
||||
++extension; // skip the dot
|
||||
if (extension[0] == 0) return false;
|
||||
|
||||
while (extensions[0]) {
|
||||
char* comma = strchr(extensions, ',');
|
||||
const char* comma = strchr(extensions, ',');
|
||||
size_t length = (comma ? comma - extensions : strlen(extensions));
|
||||
if (length == strlen(extension) && strncasecmp(extension, extensions, length) == 0) return true;
|
||||
extensions += length;
|
||||
|
||||
Reference in New Issue
Block a user