[vlc-commits] Make DirectX default on XP, instead of Direct3d

Jean-Baptiste Kempf git at videolan.org
Thu Dec 12 13:07:25 CET 2013


vlc/vlc-2.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Dec 12 13:04:35 2013 +0100| [73bc344cb5baf0e1be4981861bd7e6775144444f] | committer: Jean-Baptiste Kempf

Make DirectX default on XP, instead of Direct3d

We did that for 2.0 temporarily but kept master normal

This is still broken on some weird configurations, so well, temporary is
going to last..

(cherry picked from commit 9dae581372c5d7b714fd005c5fed6d74e701d889)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=73bc344cb5baf0e1be4981861bd7e6775144444f
---

 modules/video_output/msw/direct3d.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index b08db20..2078161 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -142,6 +142,11 @@ static int Open(vlc_object_t *object)
     vout_display_t *vd = (vout_display_t *)object;
     vout_display_sys_t *sys;
 
+    OSVERSIONINFO winVer;
+    winVer.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
+    if(GetVersionEx(&winVer) && winVer.dwMajorVersion < 6 && !object->b_force)
+        return VLC_EGENERIC;
+
     /* Allocate structure */
     vd->sys = sys = calloc(1, sizeof(vout_display_sys_t));
     if (!sys)



More information about the vlc-commits mailing list