Fixes warnings, removes trailing whitespace, adds @Override annotations.
Fixes a failure of the video capture on Windows to set a specific video resolution.