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

Commit 06a7081e authored by Hassan Shojania's avatar Hassan Shojania
Browse files

Fix format string for Modular DRM for MediaPlayer

Bug:  34559906
Test: Manual through the test app
Change-Id: I60e7ee225c5fdfe6d4f1f338059f5d65cdb704c1
parent 9d4a8cf7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ status_t NuPlayer::GenericSource::initFromDataSource() {
        const char *mime;
        CHECK(meta->findCString(kKeyMIMEType, &mime));

        ALOGV("initFromDataSource track[%d]: %s", i, mime);
        ALOGV("initFromDataSource track[%zu]: %s", i, mime);

        // Do the string compare immediately with "mime",
        // we can't assume "mime" would stay valid after another
@@ -1932,7 +1932,7 @@ status_t NuPlayer::GenericSource::checkDrmInfo()
    Parcel parcel;
    NuPlayerDrm::retrieveDrmInfo(pssh, psshsize, mMimes, &parcel);
    ALOGV("checkDrmInfo: MEDIA_DRM_INFO PSSH size: %d  Parcel size: %d  objects#: %d",
          psshsize, (int)parcel.dataSize(), (int)parcel.objectsCount());
          (int)psshsize, (int)parcel.dataSize(), (int)parcel.objectsCount());

    if (parcel.dataSize() == 0) {
        ALOGE("checkDrmInfo: Unexpected parcel size: 0");