summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/OMXCodec.cpp
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2010-11-17 18:57:13 -0800
committerJamie Gennis <jgennis@google.com>2010-11-18 15:23:47 -0800
commitc726bd8b7b9929fd917b01e5551a66ad5fe2c04e (patch)
tree0a58db3eb1a9505dfd1b142cc6ec338752cda1fd /media/libstagefright/OMXCodec.cpp
parent07e946ce4908eea5eebb30ea89f088fc7c679b5a (diff)
downloadframeworks_av-c726bd8b7b9929fd917b01e5551a66ad5fe2c04e.zip
frameworks_av-c726bd8b7b9929fd917b01e5551a66ad5fe2c04e.tar.gz
frameworks_av-c726bd8b7b9929fd917b01e5551a66ad5fe2c04e.tar.bz2
Set the external display usage bit in Stagefright.
Change-Id: Ie18fa773fdb83508d96300dd7e4e4c7c3cdc4540
Diffstat (limited to 'media/libstagefright/OMXCodec.cpp')
-rw-r--r--media/libstagefright/OMXCodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 6e8f190..6ca0f4f 100644
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -1714,7 +1714,7 @@ status_t OMXCodec::allocateOutputBuffersFromNativeWindow() {
// Set up the native window.
// XXX TODO: Get the gralloc usage flags from the OMX plugin!
err = native_window_set_usage(
- mNativeWindow.get(), GRALLOC_USAGE_HW_TEXTURE);
+ mNativeWindow.get(), GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_EXTERNAL_DISP);
if (err != 0) {
LOGE("native_window_set_usage failed: %s (%d)", strerror(-err), -err);
return err;