[vlc-commits] Make DirectX default on XP, instead of Direct3d
Jean-Baptiste Kempf
git at videolan.org
Thu Dec 12 14:18:16 CET 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Dec 12 13:04:35 2013 +0100| [81abb0632e72aa6c2d10b5d270618cdd659b62b2] | 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..
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=81abb0632e72aa6c2d10b5d270618cdd659b62b2
---
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 73de215..0b664c4 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