Skip to content

Commit 14ac954

Browse files
Jean-Baptiste QueruAndroid Code Review
authored andcommitted
Merge "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*"
2 parents 27c06ba + b61d530 commit 14ac954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media/libstagefright/MediaExtractor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ sp<MediaExtractor> MediaExtractor::Create(
5959
}
6060

6161
if (!strncmp(mime, "drm", 3)) {
62-
char *originalMime = strrchr(mime, '+') + 1;
62+
const char *originalMime = strrchr(mime, '+') + 1;
6363

6464
if (!strncmp(mime, "drm+es_based", 12)) {
6565
return new DRMExtractor(source, originalMime);

0 commit comments

Comments
 (0)