vo_vaapi: fix broken error checks
vo_wayland: drop redundant "const"
ipc: make sure --input-file=/dev/stdin always works

It's not necessarily available on Unix systems other than Linux (sigh).