vdpau: some rework, squash  me