[vlc-devel] [PATCH v3 3/3] direct3d11: allow changing the aspect ratio/crop just before the picture display

Steve Lhomme robux4 at ycbcr.xyz
Tue Sep 11 15:01:35 CEST 2018


---
 modules/video_output/win32/direct3d11.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index ae8f4449a9..c48e886aff 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -298,6 +298,8 @@ static int Open(vlc_object_t *object)
 
     vd->info.has_double_click     = true;
     vd->info.has_pictures_invalid = vd->info.is_slow;
+    vd->info.dynamic_src          = (1 << VOUT_DISPLAY_CHANGE_SOURCE_ASPECT) |
+                                    (1 << VOUT_DISPLAY_CHANGE_SOURCE_CROP);
 
     if (var_InheritBool(vd, "direct3d11-hw-blending") &&
         vd->sys->regionQuad.textureFormat != NULL)
-- 
2.17.0



More information about the vlc-devel mailing list