diff options
author | Zach Pfeffer <zach.pfeffer@linaro.org> | 2011-12-15 14:55:54 +0000 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-12-17 11:58:18 +0059 |
commit | 65b2e318ee5e015a1274340ef47461a64cd4be84 (patch) | |
tree | 9a0a52a3146da6d6ce9d8497e7499724c31beaad | |
parent | 4b135a0f73d7693e78dde743207fb8372022caf0 (diff) | |
download | base-65b2e318ee5e015a1274340ef47461a64cd4be84.tar.gz |
Revert "Stagefright: Provide crop info to native window"
This reverts commit ea532f064e7ad949d0e31a83911bebc0ef7ab701
Build https://android-build.linaro.org/builds/~linaro-android/staging-panda/#build=140 isn't booting, rolling back.
-rwxr-xr-x | media/libstagefright/OMXCodec.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp index 5d21b98d9697..b177e4629d64 100755 --- a/media/libstagefright/OMXCodec.cpp +++ b/media/libstagefright/OMXCodec.cpp @@ -1854,10 +1854,6 @@ status_t OMXCodec::allocateOutputBuffersFromNativeWindow() { return err; } - if (mNativeWindow != NULL) { - initNativeWindowCrop(); - } - err = applyRotation(); if (err != OK) { return err; @@ -2085,8 +2081,6 @@ status_t OMXCodec::pushBlankBuffersToNativeWindow() { goto error; } - initNativeWindowCrop(); - err = native_window_set_usage(mNativeWindow.get(), GRALLOC_USAGE_SW_WRITE_OFTEN); if (err != NO_ERROR) { @@ -4605,6 +4599,10 @@ void OMXCodec::initOutputFormat(const sp<MetaData> &inputFormat) { video_def->nFrameWidth - 1, video_def->nFrameHeight - 1); } + + if (mNativeWindow != NULL) { + initNativeWindowCrop(); + } } break; } |