Revert commit 994e07db0 (PR #1715), because it's irrelevant for master.

Conflicts:
	modules/java/generator/src/cpp/VideoCapture.cpp