[vlc-devel] [PATCH] direct3d11: code cleaning
Steve Lhomme
robux4 at gmail.com
Fri Aug 7 09:11:39 CEST 2015
---
modules/video_output/msw/direct3d11.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index c8a6ade..6f73227 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -1174,13 +1174,13 @@ static void UpdatePicQuadPosition(vout_display_t *vd)
HRESULT hr = IDXGISwapChain_GetPrivateData(sys->dxgiswapChain, &GUID_SWAPCHAIN_WIDTH, &dataSize, &i_width);
if (FAILED(hr)) {
msg_Err(vd, "Can't get swapchain width, size %d. (hr=0x%lX)", hr, dataSize);
- return hr;
+ return;
}
dataSize = sizeof(i_height);
hr = IDXGISwapChain_GetPrivateData(sys->dxgiswapChain, &GUID_SWAPCHAIN_HEIGHT, &dataSize, &i_height);
if (FAILED(hr)) {
msg_Err(vd, "Can't get swapchain height, size %d. (hr=0x%lX)", hr, dataSize);
- return hr;
+ return;
}
#endif
@@ -1752,8 +1752,8 @@ static int Direct3D11MapSubpicture(vout_display_t *vd, int *subpicture_region_co
/* Map the subpicture to sys->rect_dest */
- int i_original_width = subpicture->i_original_picture_width;
- int i_original_height = subpicture->i_original_picture_height;
+ const int i_original_width = subpicture->i_original_picture_width;
+ const int i_original_height = subpicture->i_original_picture_height;
const RECT video = sys->rect_dest;
const float scale_w = (float)(video.right - video.left) / i_original_width;
--
2.5.0
More information about the vlc-devel
mailing list