Added cvCapture structure's initialization failure check.