[vlc-commits] [Git][videolan/vlc][master] d3d11_scaler: don't use designated initializers in C++

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu May 4 11:33:31 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
3ae2cbf2 by Steve Lhomme at 2023-05-04T11:09:37+00:00
d3d11_scaler: don't use designated initializers in C++

This is only available in C++20 and we use C++14.

- - - - -


1 changed file:

- modules/video_output/win32/d3d11_scaler.cpp


Changes:

=====================================
modules/video_output/win32/d3d11_scaler.cpp
=====================================
@@ -152,16 +152,14 @@ int D3D11_UpscalerUpdate(vlc_object_t *vd, d3d11_scaler *scaleProc, d3d11_device
         D3D11_VIDEO_PROCESSOR_CONTENT_DESC processorDesc{};
         processorDesc.InputFrameFormat = D3D11_VIDEO_FRAME_FORMAT_PROGRESSIVE;
         processorDesc.InputFrameRate = {
-            .Numerator   = fmt->i_frame_rate,
-            .Denominator = fmt->i_frame_rate_base,
+            fmt->i_frame_rate, fmt->i_frame_rate_base,
         };
         processorDesc.InputWidth   = fmt->i_width;
         processorDesc.InputHeight  = fmt->i_height;
         processorDesc.OutputWidth  = out_width;
         processorDesc.OutputHeight = out_height;
         processorDesc.OutputFrameRate = {
-            .Numerator   = fmt->i_frame_rate,
-            .Denominator = fmt->i_frame_rate_base,
+            fmt->i_frame_rate, fmt->i_frame_rate_base,
         };
         processorDesc.Usage = D3D11_VIDEO_USAGE_PLAYBACK_NORMAL;
         hr = scaleProc->d3dviddev->CreateVideoProcessorEnumerator(&processorDesc, &scaleProc->enumerator);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3ae2cbf282cceaebd3d49a2abf4d5f7af2a47096

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3ae2cbf282cceaebd3d49a2abf4d5f7af2a47096
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list