summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2012-10-17 16:43:49 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-10-17 16:43:49 -0700
commitc7e153bd30c14027785782ec23670490d80dd73b (patch)
tree2a57694d66dc53dde3a99b44d1555b3f11caef97 /media
parenta799a40491f8fbd3cdc8681bff6f7fac3933db95 (diff)
parentfdffbc69ce830b57e88cb1277cf77c0eb4a6152f (diff)
downloadframeworks_av-c7e153bd30c14027785782ec23670490d80dd73b.zip
frameworks_av-c7e153bd30c14027785782ec23670490d80dd73b.tar.gz
frameworks_av-c7e153bd30c14027785782ec23670490d80dd73b.tar.bz2
am 5ee33507: am ccd08439: Added some extra failure logging messages
* commit '5ee3350785f2821a1b5aad92824ea6b380f61ece': Added some extra failure logging messages
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/AwesomePlayer.cpp1
-rwxr-xr-xmedia/libstagefright/OMXCodec.cpp7
2 files changed, 8 insertions, 0 deletions
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp
index 0cb378d..685e676 100644
--- a/media/libstagefright/AwesomePlayer.cpp
+++ b/media/libstagefright/AwesomePlayer.cpp
@@ -1504,6 +1504,7 @@ status_t AwesomePlayer::initVideoDecoder(uint32_t flags) {
status_t err = mVideoSource->start();
if (err != OK) {
+ ALOGE("failed to start video source");
mVideoSource.clear();
return err;
}
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 07f92c7..70de174 100755
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -1689,6 +1689,8 @@ status_t OMXCodec::applyRotation() {
if (transform) {
err = native_window_set_buffers_transform(
mNativeWindow.get(), transform);
+ ALOGE("native_window_set_buffers_transform failed: %s (%d)",
+ strerror(-err), -err);
}
return err;
@@ -1703,6 +1705,7 @@ status_t OMXCodec::allocateOutputBuffersFromNativeWindow() {
status_t err = mOMX->getParameter(
mNode, OMX_IndexParamPortDefinition, &def, sizeof(def));
if (err != OK) {
+ CODEC_LOGE("getParameter failed: %d", err);
return err;
}
@@ -3606,6 +3609,7 @@ status_t OMXCodec::start(MetaData *meta) {
Mutex::Autolock autoLock(mLock);
if (mState != LOADED) {
+ CODEC_LOGE("called start in the unexpected state: %d", mState);
return UNKNOWN_ERROR;
}
@@ -3639,12 +3643,14 @@ status_t OMXCodec::start(MetaData *meta) {
// if supported, the source to use exactly the same number of input
// buffers as requested by the encoder.
if ((err = init()) != OK) {
+ CODEC_LOGE("init failed: %d", err);
return err;
}
params->setInt32(kKeyNumBuffers, mPortBuffers[kPortIndexInput].size());
err = mSource->start(params.get());
if (err != OK) {
+ CODEC_LOGE("source failed to start: %d", err);
stopOmxComponent_l();
}
return err;
@@ -3652,6 +3658,7 @@ status_t OMXCodec::start(MetaData *meta) {
// Decoder case
if ((err = mSource->start(params.get())) != OK) {
+ CODEC_LOGE("source failed to start: %d", err);
return err;
}
return init();