Updated error handling in video class