Correctly check for video type, fixes #699