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

Commit c9d85895 authored by guochuang's avatar guochuang
Browse files

libstagefright: modify "dataspace" prints ambiguously



dataspace is hex, it should be print as 0x*(%#x).

Signed-off-by: default avatarguochuang <guochuang@xiaomi.corp-partner.google.com>
Change-Id: If3ab869838263ecdac3ec163d3a5bee922a75ea8
parent bd526c26
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4697,7 +4697,7 @@ void MediaCodec::handleOutputFormatChangeIfNeeded(const sp<MediaCodecBuffer> &bu
        // rendering.
        int32_t dataSpace;
        if (mOutputFormat->findInt32("android._dataspace", &dataSpace)) {
            ALOGD("[%s] setting dataspace on output surface to #%x",
            ALOGD("[%s] setting dataspace on output surface to %#x",
                    mComponentName.c_str(), dataSpace);
            int err = native_window_set_buffers_data_space(
                    mSurface.get(), (android_dataspace)dataSpace);
+1 −1
Original line number Diff line number Diff line
@@ -441,7 +441,7 @@ skip_copying:
                    ((dataSpace & ~HAL_DATASPACE_RANGE_MASK) | HAL_DATASPACE_RANGE_FULL);
        }

        ALOGD("setting dataspace on output surface to #%x", dataSpace);
        ALOGD("setting dataspace on output surface to %#x", dataSpace);
        if ((err = native_window_set_buffers_data_space(mNativeWindow.get(), dataSpace))) {
            ALOGW("failed to set dataspace on surface (%d)", err);
        }