summaryrefslogtreecommitdiffstats
path: root/drm/drmserver
diff options
context:
space:
mode:
authorGloria Wang <gwang@google.com>2011-03-02 12:33:00 -0800
committerGloria Wang <gwang@google.com>2011-03-02 12:33:00 -0800
commit289401b7566384570de86e9ad6ab3c572e358675 (patch)
tree0ba122530f6a5efdd8ded1cd9e8b68570f190a4a /drm/drmserver
parent0528bc77948e49bd75cfd4082fb8fef3a7238626 (diff)
downloadframeworks_base-289401b7566384570de86e9ad6ab3c572e358675.zip
frameworks_base-289401b7566384570de86e9ad6ab3c572e358675.tar.gz
frameworks_base-289401b7566384570de86e9ad6ab3c572e358675.tar.bz2
To support DRM files without file extension
Change-Id: Ie7701048d0dbd51bf358364014a1b41c894b664c
Diffstat (limited to 'drm/drmserver')
-rw-r--r--drm/drmserver/DrmManager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/drm/drmserver/DrmManager.cpp b/drm/drmserver/DrmManager.cpp
index ef7d274..ec400b7 100644
--- a/drm/drmserver/DrmManager.cpp
+++ b/drm/drmserver/DrmManager.cpp
@@ -184,7 +184,10 @@ bool DrmManager::canHandle(int uniqueId, const String8& path, const String8& mim
IDrmEngine& rDrmEngine = mPlugInManager.getPlugIn(plugInId);
result = rDrmEngine.canHandle(uniqueId, path);
} else {
- result = canHandle(uniqueId, path);
+ String8 extension = path.getPathExtension();
+ if (String8("") != extension) {
+ result = canHandle(uniqueId, path);
+ }
}
}
return result;