# HG changeset patch # User reimar # Date 1139132513 0 # Node ID 13cdba48ff986b5cfaf84a69e5112a27ed93572e # Parent 86a9a60ef596be65b15defa22903ca6028032e8e 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 diff -r 86a9a60ef596 -r 13cdba48ff98 libvo/vo_directx.c --- 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){