diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-02-05 09:41:53 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-02-05 09:41:53 +0000 |
commit | 7c974d107786c84d1325d92265adb3c9fb8c8a3b (patch) | |
tree | 8cd1e7871d0fa3602634479fb93124d85992e9c7 | |
parent | e966401eba7c06c6ff5b3919925208016ee0c4ae (diff) | |
download | mpv-7c974d107786c84d1325d92265adb3c9fb8c8a3b.tar.bz2 mpv-7c974d107786c84d1325d92265adb3c9fb8c8a3b.tar.xz |
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
-rw-r--r-- | libvo/vo_directx.c | 1 |
1 files changed, 1 insertions, 0 deletions
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){ |