build failed with g++ v. 4.4.5

err msg: frameworks/base/media/libstagefright/MediaExtractor.cpp:62: error: invalid conversion from ‘const char*’ to ‘char*’
strrchr provides two prototypes. the one used returns const char* instead of char*

Change-Id: I6442ee642aebfbfc2f977bab40016cfedc7789ac
This commit is contained in:
Matthias Bady
2010-11-18 00:22:48 +01:00
parent 383e95e245
commit b61d530575

View File

@@ -59,7 +59,7 @@ sp<MediaExtractor> MediaExtractor::Create(
}
if (!strncmp(mime, "drm", 3)) {
char *originalMime = strrchr(mime, '+') + 1;
const char *originalMime = strrchr(mime, '+') + 1;
if (!strncmp(mime, "drm+es_based", 12)) {
return new DRMExtractor(source, originalMime);