summaryrefslogtreecommitdiffstats
path: root/drm/common
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2011-03-15 13:46:27 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-15 13:46:27 -0700
commite24faedc6bc34d2ef7bc7bae64b6b20ccaf8b97d (patch)
tree9ec2cf6ed3c4c5b5fc1e08a2340c58adc35fb41f /drm/common
parent1444c94bfa6abc6516691580c360565ce18696d4 (diff)
parente1b7678650b78cbd2837ef60c4e7ad2f23745f60 (diff)
downloadframeworks_av-e24faedc6bc34d2ef7bc7bae64b6b20ccaf8b97d.zip
frameworks_av-e24faedc6bc34d2ef7bc7bae64b6b20ccaf8b97d.tar.gz
frameworks_av-e24faedc6bc34d2ef7bc7bae64b6b20ccaf8b97d.tar.bz2
am 4528a7db: Merge "Bug 4016329 do full string comparisons" into honeycomb-mr1
* commit '4528a7db389b4da73207d00ca15b306a111650cc': Bug 4016329 do full string comparisons
Diffstat (limited to 'drm/common')
-rw-r--r--drm/common/DrmSupportInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drm/common/DrmSupportInfo.cpp b/drm/common/DrmSupportInfo.cpp
index 3e02093..c0bff0e 100644
--- a/drm/common/DrmSupportInfo.cpp
+++ b/drm/common/DrmSupportInfo.cpp
@@ -45,7 +45,7 @@ bool DrmSupportInfo::isSupportedMimeType(const String8& mimeType) const {
for (unsigned int i = 0; i < mMimeTypeVector.size(); i++) {
const String8 item = mMimeTypeVector.itemAt(i);
- if (String8("") != mimeType && item.find(mimeType) != -1) {
+ if (!strcasecmp(item.string(), mimeType.string())) {
return true;
}
}
@@ -56,7 +56,7 @@ bool DrmSupportInfo::isSupportedFileSuffix(const String8& fileType) const {
for (unsigned int i = 0; i < mFileSuffixVector.size(); i++) {
const String8 item = mFileSuffixVector.itemAt(i);
- if (item.find(fileType) != -1) {
+ if (!strcasecmp(item.string(), fileType.string())) {
return true;
}
}