Merge "Camera service: Initialization for camera2 clients and devices"
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 7fb395e..baabd37 100755
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -3648,7 +3648,7 @@
}
status_t OMXCodec::stop() {
- CODEC_LOGV("stop mState=%d", mState);
+ CODEC_LOGI("stop mState=%d", mState);
Mutex::Autolock autoLock(mLock);
@@ -3748,9 +3748,10 @@
mLeftOverBuffer = NULL;
}
+ CODEC_LOGI("stopping in state %d", mState);
mSource->stop();
- CODEC_LOGV("stopped in state %d", mState);
+ CODEC_LOGI("stopped in state %d", mState);
return OK;
}
diff --git a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp
index 791445c..8dbff9e 100644
--- a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp
+++ b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp
@@ -416,6 +416,9 @@
outHeader->nAllocLen,
0 /* flags */);
+ if (decoderErr == AAC_DEC_NOT_ENOUGH_BITS) {
+ ALOGW("Not enough bits, bytesValid %d", bytesValid[0]);
+ }
}
/*