d3d11window: Fix for dxva decoder output view rendering

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.
This commit is contained in:
Seungha Yang 2020-02-11 13:12:33 +09:00 committed by GStreamer Merge Bot
parent a39a5bf131
commit 4383b387b7

View file

@ -589,7 +589,10 @@ gst_d3d11_window_prepare (GstD3D11Window * window, guint width, guint height,
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;