summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chih-Chung Chang <chihchung@google.com> 2011-08-22 20:11:31 +0800
committer Chih-Chung Chang <chihchung@google.com> 2011-08-23 11:18:05 +0800
commite64966833191dd26f03706f4317741cd7555552e (patch)
tree0c8ae9af2d46be6035566c9fb2f2056740c648ee
parente20c279d9a6719a7c0d8c6606c7ba1bd207db8d3 (diff)
Port setting change should happen before receiving any filled frame.
Change-Id: I12a54b80e7ef958b6d451b7add110d38f05ec439
-rwxr-xr-xmedia/libstagefright/OMXCodec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libstagefright/OMXCodec.cpp b/media/libstagefright/OMXCodec.cpp
index 27dfeab4cb6f..98c8f995ae73 100755
--- a/media/libstagefright/OMXCodec.cpp
+++ b/media/libstagefright/OMXCodec.cpp
@@ -2316,6 +2316,7 @@ void OMXCodec::onEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2) {
{
CODEC_LOGV("OMX_EventPortSettingsChanged(port=%ld, data2=0x%08lx)",
data1, data2);
+ CHECK(mFilledBuffers.empty());
if (data2 == 0 || data2 == OMX_IndexParamPortDefinition) {
onPortSettingsChanged(data1);