diff options
-rw-r--r-- | videocodec/OMXVideoDecoderBase.cpp | 3 |
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(¶mPortDefinitionInput, true); this->ports[OUTPORT_INDEX]->SetPortDefinition(¶mPortDefinitionOutput, true); + ProcessorFlush(INPORT_INDEX); + mVideoDecoder->freeSurfaceBuffers(); - ProcessorFlush(INPORT_INDEX); this->ports[OUTPORT_INDEX]->ReportPortSettingsChanged(); mFormatChanged = false; |