aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--videocodec/OMXVideoDecoderBase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/videocodec/OMXVideoDecoderBase.cpp b/videocodec/OMXVideoDecoderBase.cpp
index 6270cea..975ac4c 100644
--- a/videocodec/OMXVideoDecoderBase.cpp
+++ b/videocodec/OMXVideoDecoderBase.cpp
@@ -734,9 +734,10 @@ OMX_ERRORTYPE OMXVideoDecoderBase::HandleFormatChange(void) {
this->ports[INPORT_INDEX]->SetPortDefinition(&paramPortDefinitionInput, true);
this->ports[OUTPORT_INDEX]->SetPortDefinition(&paramPortDefinitionOutput, true);
+ ProcessorFlush(INPORT_INDEX);
+
mVideoDecoder->freeSurfaceBuffers();
- ProcessorFlush(INPORT_INDEX);
this->ports[OUTPORT_INDEX]->ReportPortSettingsChanged();
mFormatChanged = false;