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

Commit 69c23dd9 authored by Dongwon Kang's avatar Dongwon Kang
Browse files

MediaResourceMonitor: Change argument type from string to int

Bug: 27529962
Change-Id: I66225fffd0f95e5ed5255d316980416c5e131342
parent 7f7052f5
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -96,8 +96,11 @@ static void notifyResourceGranted(int pid, const Vector<MediaResource> &resource
    if (binder != NULL) {
        sp<IMediaResourceMonitor> service = interface_cast<IMediaResourceMonitor>(binder);
        for (size_t i = 0; i < resources.size(); ++i) {
            service->notifyResourceGranted(pid, String16(asString(resources[i].mType)),
                    String16(asString(resources[i].mSubType)), resources[i].mValue);
            if (resources[i].mSubType == MediaResource::kAudioCodec) {
                service->notifyResourceGranted(pid, IMediaResourceMonitor::TYPE_AUDIO_CODEC);
            } else if (resources[i].mSubType == MediaResource::kVideoCodec) {
                service->notifyResourceGranted(pid, IMediaResourceMonitor::TYPE_VIDEO_CODEC);
            }
        }
    }
}