Add 'locked' boolean to input surfaces. Disable reuse of already mapped buffers in RequestBuffers (or you probably miss a frame).
Remove OVOutput.