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

Commit f1a36052 authored by jiabin's avatar jiabin
Browse files

Use ALOGD when fails setting event callback.

The codec changed callback is not mandatory. In that case, it is not
considered as error when fails setting event callback. Use ALOGD instead
as the information will be useful to debug codec changed event.

Bug: 165629960
Test: make
Change-Id: I077c7a75acfb474344cd278394a778176471f224
parent 4a603cd0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1946,7 +1946,7 @@ void AudioFlinger::PlaybackThread::onFirstRef()
        // here instead of constructor of PlaybackThread so that the onFirstRef
        // callback would not be made on an incompletely constructed object.
        if (mOutput->stream->setEventCallback(this) != OK) {
            ALOGE("Failed to add event callback");
            ALOGD("Failed to add event callback");
        }
    }
    run(mThreadName, ANDROID_PRIORITY_URGENT_AUDIO);