changeset 17534:13cdba48ff98

reinitialize adapter_count to 0, EnumCallbackEx will not work otherwise (when playing more that one file). Fixes bug #429. Based on patch by Miguel Scaramozzino - dyingshell at yahoo com
author reimar
date Sun, 05 Feb 2006 09:41:53 +0000
parents 86a9a60ef596
children 09b1ecb4d569
files libvo/vo_directx.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_directx.c	Sat Feb 04 08:54:31 2006 +0000
+++ b/libvo/vo_directx.c	Sun Feb 05 09:41:53 2006 +0000
@@ -416,6 +416,7 @@
 	LPDIRECTDRAWENUMERATEEX OurDirectDrawEnumerateEx;
 	HINSTANCE user32dll=LoadLibrary("user32.dll");
 	
+	adapter_count = 0;
 	if(user32dll){
 		myGetMonitorInfo=GetProcAddress(user32dll,"GetMonitorInfoA");
 		if(!myGetMonitorInfo && vo_adapter_num){