I cannot find the factory call in your patch. You need to modify modules/highgui/src/cap.cpp file too to make your VideoCapture impl available through OpenCV API.