Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef4cd0a4 authored by Jeff Tinker's avatar Jeff Tinker Committed by Android Git Automerger
Browse files

am d3831760: DO NOT MERGE: Lock drm plugin API calls globally, not per MediaDrm instance

* commit 'd3831760':
  DO NOT MERGE: Lock drm plugin API calls globally, not per MediaDrm instance
parents fc9c5e60 d3831760
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -46,6 +46,7 @@ static bool checkPermission(const char* permissionString) {
KeyedVector<Vector<uint8_t>, String8> Drm::mUUIDToLibraryPathMap;
KeyedVector<String8, wp<SharedLibrary> > Drm::mLibraryPathToOpenLibraryMap;
Mutex Drm::mMapLock;
Mutex Drm::mLock;

static bool operator<(const Vector<uint8_t> &lhs, const Vector<uint8_t> &rhs) {
    if (lhs.size() < rhs.size()) {
+1 −1
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ struct Drm : public BnDrm,
    virtual void binderDied(const wp<IBinder> &the_late_who);

private:
    mutable Mutex mLock;
    static Mutex mLock;

    status_t mInitCheck;