Merge "Port setting change should happen before receiving any filled frame."
This commit is contained in:
committed by
Android (Google) Code Review
commit
7096c4a0e2
@@ -2325,6 +2325,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);
|
||||
|
||||
Reference in New Issue
Block a user