From 7c974d107786c84d1325d92265adb3c9fb8c8a3b Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 5 Feb 2006 09:41:53 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17535 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_directx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c index 838c39de89..8a80506b00 100644 --- a/libvo/vo_directx.c +++ b/libvo/vo_directx.c @@ -416,6 +416,7 @@ static uint32_t Directx_InitDirectDraw() LPDIRECTDRAWENUMERATEEX OurDirectDrawEnumerateEx; HINSTANCE user32dll=LoadLibrary("user32.dll"); + adapter_count = 0; if(user32dll){ myGetMonitorInfo=GetProcAddress(user32dll,"GetMonitorInfoA"); if(!myGetMonitorInfo && vo_adapter_num){