Commit e96f4b5d authored by Steve Block's avatar Steve Block Committed by Martin Storsjo

Upstream commit "Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF)"

Change-Id: I1de629b4632a4b3187ca1a28d6416daccd35f924

Adapted from upstream commit c6aacce37191e1cc79cfeba13b39899f59c68c3b.
parent d753bf1e
...@@ -80,7 +80,7 @@ status_t AMRWBEncoder::initCheck() { ...@@ -80,7 +80,7 @@ status_t AMRWBEncoder::initCheck() {
CHECK(mApiHandle); CHECK(mApiHandle);
if (VO_ERR_NONE != voGetAMRWBEncAPI(mApiHandle)) { if (VO_ERR_NONE != voGetAMRWBEncAPI(mApiHandle)) {
LOGE("Failed to get api handle"); ALOGE("Failed to get api handle");
return UNKNOWN_ERROR; return UNKNOWN_ERROR;
} }
...@@ -97,20 +97,20 @@ status_t AMRWBEncoder::initCheck() { ...@@ -97,20 +97,20 @@ status_t AMRWBEncoder::initCheck() {
userData.memflag = VO_IMF_USERMEMOPERATOR; userData.memflag = VO_IMF_USERMEMOPERATOR;
userData.memData = (VO_PTR) mMemOperator; userData.memData = (VO_PTR) mMemOperator;
if (VO_ERR_NONE != mApiHandle->Init(&mEncoderHandle, VO_AUDIO_CodingAMRWB, &userData)) { if (VO_ERR_NONE != mApiHandle->Init(&mEncoderHandle, VO_AUDIO_CodingAMRWB, &userData)) {
LOGE("Failed to init AMRWB encoder"); ALOGE("Failed to init AMRWB encoder");
return UNKNOWN_ERROR; return UNKNOWN_ERROR;
} }
// Configure AMRWB encoder$ // Configure AMRWB encoder$
VOAMRWBMODE mode = pickModeFromBitRate(mBitRate); VOAMRWBMODE mode = pickModeFromBitRate(mBitRate);
if (VO_ERR_NONE != mApiHandle->SetParam(mEncoderHandle, VO_PID_AMRWB_MODE, &mode)) { if (VO_ERR_NONE != mApiHandle->SetParam(mEncoderHandle, VO_PID_AMRWB_MODE, &mode)) {
LOGE("Failed to set AMRWB encoder mode to %d", mode); ALOGE("Failed to set AMRWB encoder mode to %d", mode);
return UNKNOWN_ERROR; return UNKNOWN_ERROR;
} }
VOAMRWBFRAMETYPE type = VOAMRWB_RFC3267; VOAMRWBFRAMETYPE type = VOAMRWB_RFC3267;
if (VO_ERR_NONE != mApiHandle->SetParam(mEncoderHandle, VO_PID_AMRWB_FRAMETYPE, &type)) { if (VO_ERR_NONE != mApiHandle->SetParam(mEncoderHandle, VO_PID_AMRWB_FRAMETYPE, &type)) {
LOGE("Failed to set AMRWB encoder frame type to %d", type); ALOGE("Failed to set AMRWB encoder frame type to %d", type);
return UNKNOWN_ERROR; return UNKNOWN_ERROR;
} }
...@@ -140,7 +140,7 @@ status_t AMRWBEncoder::start(MetaData *params) { ...@@ -140,7 +140,7 @@ status_t AMRWBEncoder::start(MetaData *params) {
status_t err = mSource->start(params); status_t err = mSource->start(params);
if (err != OK) { if (err != OK) {
LOGE("AudioSource is not available"); ALOGE("AudioSource is not available");
return err; return err;
} }
mStarted = true; mStarted = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment