video: error checking

Holy crap that's a lot of checks.