I observed same strange behaviour already last year on my »Video Output« talk.
The return value indicates an unkown error, but the subsequent usage seemingly works...
On my Laptop, I don not see this error; it might be due to the very old graphics card on my PC...