void OMXImplWVClassic::Deinit() { // Session should be torn down in ProcessorStop, delayed to ProcessorDeinit // to allow remaining frames completely rendered. LOGI("Calling Drm_DestroySession."); sec_result_t sepres = Drm_DestroySession(WV_SESSION_ID); if (sepres != DRM_SUCCESSFUL) { LOGW("Drm_DestroySession returns %#x", sepres); } }
OMX_ERRORTYPE OMXVideoDecoderAVCSecure::ProcessorDeinit(void) { // Session should be torn down in ProcessorStop, delayed to ProcessorDeinit // to allow remaining frames completely rendered. LOGI("Calling Drm_DestroySession."); sec_result_t sepres = Drm_DestroySession(WV_SESSION_ID); if (sepres != 0) { LOGW("Drm_DestroySession returns %#x", sepres); } EnableIEDSession(false); return OMXVideoDecoderBase::ProcessorDeinit(); }