mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
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
This commit is contained in:
parent
e966401eba
commit
7c974d1077
@ -416,6 +416,7 @@ static uint32_t Directx_InitDirectDraw()
|
|||||||
LPDIRECTDRAWENUMERATEEX OurDirectDrawEnumerateEx;
|
LPDIRECTDRAWENUMERATEEX OurDirectDrawEnumerateEx;
|
||||||
HINSTANCE user32dll=LoadLibrary("user32.dll");
|
HINSTANCE user32dll=LoadLibrary("user32.dll");
|
||||||
|
|
||||||
|
adapter_count = 0;
|
||||||
if(user32dll){
|
if(user32dll){
|
||||||
myGetMonitorInfo=GetProcAddress(user32dll,"GetMonitorInfoA");
|
myGetMonitorInfo=GetProcAddress(user32dll,"GetMonitorInfoA");
|
||||||
if(!myGetMonitorInfo && vo_adapter_num){
|
if(!myGetMonitorInfo && vo_adapter_num){
|
||||||
|
Loading…
Reference in New Issue
Block a user