summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/Android.mk
diff options
context:
space:
mode:
authorMichael Gernoth <michael@gernoth.net>2014-11-24 21:25:28 +0100
committerSteve Kondik <shade@chemlab.org>2015-11-07 01:24:14 -0800
commit6652c2586368bfaf14799b06be4eb91d5d21fed9 (patch)
tree901deeb77f976f081d4ef419f4041e775d0d3803 /media/libstagefright/Android.mk
parent6b33144d873c32afb456028416939d096e88b186 (diff)
downloadframeworks_av-6652c2586368bfaf14799b06be4eb91d5d21fed9.zip
frameworks_av-6652c2586368bfaf14799b06be4eb91d5d21fed9.tar.gz
frameworks_av-6652c2586368bfaf14799b06be4eb91d5d21fed9.tar.bz2
libstagefright: Make it possible to skip OMX buffer reallocation
Some devices don't like the call to setParameter() at this point, so skip this call if enough buffers are already allocated. This check was present in KitKat but got removed when code to allocate extra- buffers was introduced. This is activated only for omap4 for now. Squashed 2nd commit: which does same for OMXCodec.cpp Change-Id: I9c1267c2a2a755bc16448a6049cb2e4aff0b65bb
Diffstat (limited to 'media/libstagefright/Android.mk')
-rw-r--r--media/libstagefright/Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/Android.mk b/media/libstagefright/Android.mk
index 725789a..6c37819 100644
--- a/media/libstagefright/Android.mk
+++ b/media/libstagefright/Android.mk
@@ -161,6 +161,10 @@ ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
LOCAL_CFLAGS += -DENABLE_STAGEFRIGHT_EXPERIMENTS
endif
+ifeq ($(TARGET_BOARD_PLATFORM),omap4)
+LOCAL_CFLAGS += -DBOARD_CANT_REALLOCATE_OMX_BUFFERS
+endif
+
LOCAL_CLANG := true
ifeq ($(BOARD_USE_SAMSUNG_CAMERAFORMAT_NV21), true)