summaryrefslogtreecommitdiffstats
path: root/libstagefrighthw
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-11-11 20:43:57 -0800
committerJames Dong <jdong@google.com>2010-11-11 20:43:57 -0800
commit694a471276aaf69fac39f0f2380908b88ddb76cb (patch)
tree775ecbedbadfea0753f8df86426570c4d913628a /libstagefrighthw
parent82d5df491f920e7dc8d13059c5887c8e896c84d6 (diff)
downloaddevice_samsung_crespo-694a471276aaf69fac39f0f2380908b88ddb76cb.zip
device_samsung_crespo-694a471276aaf69fac39f0f2380908b88ddb76cb.tar.gz
device_samsung_crespo-694a471276aaf69fac39f0f2380908b88ddb76cb.tar.bz2
Fix a bug in overlay where the check on the overlay creation was mistakenly bypassed
bug - 3188835 Change-Id: Ie7ef190086084cb5098de91d88b4d2d2381216d2
Diffstat (limited to 'libstagefrighthw')
-rw-r--r--libstagefrighthw/SecHardwareRenderer.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/libstagefrighthw/SecHardwareRenderer.cpp b/libstagefrighthw/SecHardwareRenderer.cpp
index f534b10..cb9e8e8 100644
--- a/libstagefrighthw/SecHardwareRenderer.cpp
+++ b/libstagefrighthw/SecHardwareRenderer.cpp
@@ -85,11 +85,14 @@ SecHardwareRenderer::SecHardwareRenderer(
mDecodedWidth, mDecodedHeight,
HAL_PIXEL_FORMAT_CUSTOM_YCbCr_420_SP, orientation);
mCustomFormat = true;
- } else
+ }
#else
- ref = mISurface->createOverlay(
- mDecodedWidth, mDecodedHeight, HAL_PIXEL_FORMAT_YCbCr_420_P,
- orientation);
+ else
+ {
+ ref = mISurface->createOverlay(
+ mDecodedWidth, mDecodedHeight, HAL_PIXEL_FORMAT_YCbCr_420_P,
+ orientation);
+ }
#endif
if (ref.get() == NULL) {