summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/ACodec.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-05-15 12:54:45 -0700
committerAndreas Huber <andih@google.com>2012-05-15 12:54:45 -0700
commit1ec498e67f78fb0c3ab2a1cd9a071e6356618dad (patch)
treebdafe1da8e35f86b8e4e559ae28b4667d7653cbb /media/libstagefright/ACodec.cpp
parent2986460984580833161bdaabc7f17da1005a8961 (diff)
downloadframeworks_av-1ec498e67f78fb0c3ab2a1cd9a071e6356618dad.zip
frameworks_av-1ec498e67f78fb0c3ab2a1cd9a071e6356618dad.tar.gz
frameworks_av-1ec498e67f78fb0c3ab2a1cd9a071e6356618dad.tar.bz2
Explicitly set the video scaling mode to "stretch".
Change-Id: I23b8848cfef51bc8ea72deb22783e21d093dbd98 related-to-bug: 6498150
Diffstat (limited to 'media/libstagefright/ACodec.cpp')
-rw-r--r--media/libstagefright/ACodec.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 3d7ea92..dc8b33d 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -2930,6 +2930,10 @@ bool ACodec::LoadedState::onConfigureComponent(
static_cast<NativeWindowWrapper *>(obj.get()));
CHECK(nativeWindow != NULL);
mCodec->mNativeWindow = nativeWindow->getNativeWindow();
+
+ native_window_set_scaling_mode(
+ mCodec->mNativeWindow.get(),
+ NATIVE_WINDOW_SCALING_MODE_SCALE_TO_WINDOW);
}
CHECK_EQ((status_t)OK, mCodec->initNativeWindow());