{
if (mSurface == 0) return PVMFFailure;
+ if (++mFrameBufferIndex == kBufferCount) mFrameBufferIndex = 0;
iColorConverter->Convert(aData, static_cast<uint8*>(mFrameHeap->base()) + mFrameBuffers[mFrameBufferIndex]);
// post to SurfaceFlinger
- if (++mFrameBufferIndex == kBufferCount) mFrameBufferIndex = 0;
mSurface->postBuffer(mFrameBuffers[mFrameBufferIndex]);
return PVMFSuccess;
}
//moved below delete this, similar code on playerdriver.cpp caused a crash.
//cleanup of oscl should happen at the end.
+ OsclScheduler::Cleanup();
PV_MasterOMX_Deinit();
UninitializeForThread();
return 0;