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

Commit 854718e0 authored by Alan Orth's avatar Alan Orth
Browse files

OMXCodec: Don't log informational messages as errors

Change OMXcodec's informational messages from LOGE to LOGI, so that
logcat isn't spammed with "errors" such as:

E/OMXCodec(  124): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
E/OMXCodec(  124): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'

They now appear as:

I/OMXCodec(  124): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
I/OMXCodec(  124): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'

Change-Id: I5d0b8f16d1d7fe957e284b096e8208f70957afd5
parent 695a8b2a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -677,11 +677,11 @@ sp<MediaSource> OMXCodec::Create(
#endif
		}
        if (softwareCodec != NULL) {
            LOGE("Successfully allocated software codec '%s'", componentName);
            LOGI("Successfully allocated software codec '%s'", componentName);
            return softwareCodec;
        }

        LOGE("Attempting to allocate OMX node '%s'", componentName);
        LOGI("Attempting to allocate OMX node '%s'", componentName);

        uint32_t quirks = getComponentQuirks(componentNameBase, createEncoder);
#ifdef QCOM_HARDWARE
@@ -721,7 +721,7 @@ sp<MediaSource> OMXCodec::Create(

        status_t err = omx->allocateNode(componentName, observer, &node);
        if (err == OK) {
            LOGE("Successfully allocated OMX node '%s'", componentName);
            LOGI("Successfully allocated OMX node '%s'", componentName);

            sp<OMXCodec> codec = new OMXCodec(
                    omx, node, quirks, flags,