mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
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:
parent
a39a5bf131
commit
4383b387b7
1 changed files with 4 additions and 1 deletions
|
@ -589,7 +589,10 @@ gst_d3d11_window_prepare (GstD3D11Window * window, guint width, guint height,
|
||||||
window->render_rect.right = width;
|
window->render_rect.right = width;
|
||||||
window->render_rect.bottom = height;
|
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->width = width;
|
||||||
window->height = height;
|
window->height = height;
|
||||||
|
|
Loading…
Reference in a new issue