DirectX uses fences, which are synchronization objects that signal when a specific operation (like VPP processing) is complete. DWM can wait on the fence before presenting the frame, ensuring VPP finishes first.
Here are some resources that might be helpful, although they might not be Movie TV specific: