That won't help vdpau. It will happily re-use the buffer since it never ask rendermanger for a free buffer, or you have some additional code to handle this?

I'd much rather see the DXVA solution with fences added. Then vdpau see the buffer free, and can check the fence directly without having to ask rendermanager about it.