Use resolution specified in caps for input_rect instead of
passed width and height value. The width and height might be modified
ones by d3d11videosink, then frame resolution might be different.
window->render_rect.right = width;
window->render_rect.bottom = height;
- window->input_rect = window->render_rect;
+ window->input_rect.left = 0;
+ window->input_rect.top = 0;
+ window->input_rect.right = GST_VIDEO_INFO_WIDTH (&window->info);
+ window->input_rect.bottom = GST_VIDEO_INFO_HEIGHT (&window->info);
window->width = width;
window->height = height;