summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-02-05 09:41:53 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-02-05 09:41:53 +0000
commit7c974d107786c84d1325d92265adb3c9fb8c8a3b (patch)
tree8cd1e7871d0fa3602634479fb93124d85992e9c7 /libvo
parente966401eba7c06c6ff5b3919925208016ee0c4ae (diff)
downloadmpv-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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_directx.c1
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){