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

Commit 5d5aed9d authored by Santosh Madhava's avatar Santosh Madhava
Browse files

Fix for issue 3444969 : Crash while generating transition

Change-Id: I63286dc66bfcd496aee45d26c8934f519ce63429
parent b4ce81da
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -68,6 +68,7 @@ void VideoEditorResampler::releaseBuffer(AudioBufferProvider::Buffer *pBuffer) {
    if(pBuffer->raw != NULL) {
    if(pBuffer->raw != NULL) {
        free(pBuffer->raw);
        free(pBuffer->raw);
        pBuffer->raw = NULL;
        pBuffer->raw = NULL;
        mTmpInBuffer = NULL;
    }
    }
    pBuffer->frameCount = 0;
    pBuffer->frameCount = 0;
}
}
@@ -88,6 +89,7 @@ M4OSA_Int32 LVAudioResamplerCreate(M4OSA_Int32 bitDepth, M4OSA_Int32 inChannelCo
    context->nbChannels = inChannelCount;
    context->nbChannels = inChannelCount;
    context->outSamplingRate = sampleRate;
    context->outSamplingRate = sampleRate;
    context->mInput = NULL;
    context->mInput = NULL;
    context->mTmpInBuffer = NULL;


    return ((M4OSA_Int32)context);
    return ((M4OSA_Int32)context);
}
}