Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53b0a2b1 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

Reset PV decoder on SoftMPEG4 decoder reset



Otherwise, state may be undefined for subsequent frames.

Change-Id: Icdc0126247e1422eba21f2008a04cf7867d93f5d
Signed-off-by: default avatarLajos Molnar <lajos@google.com>
Bug: 9284771
(cherry picked from commit 0f15875b8e80fb49a3b18d88964b063326f307b9)
parent 1e7bc668
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -574,6 +574,11 @@ void SoftMPEG4::onPortEnableCompleted(OMX_U32 portIndex, bool enabled) {
void SoftMPEG4::onReset() {
    mSignalledError = false;
    mOutputPortSettingsChange = NONE;
    mFramesConfigured = false;
    if (mInitialized) {
        PVCleanUpVideoDecoder(mHandle);
        mInitialized = false;
    }
}

void SoftMPEG4::updatePortDefinitions() {