koko playing videos as a glitchy artifact mess - how to fix?

Everytime I want to play a video (no matter whether the codec is h.264 or h.265), this happens:

When I play it using VLC, it works just fine. I'm running Arch with all the codecs installed. How do I fix this? Please don't tell me to switch to another video player, if I wanted to, I would have done it already.