summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-17 13:17:56 +0000
committerfaust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-10-17 13:17:56 +0000
commit587b78b278e1d26c9809cdfc26a4aaf1bed2b6fe (patch)
tree69a0143e9080516f1b81ecfda27c29e6b904398b /libvo
parent7eadbc8831d075a383e82c0fda3ea68a3d219385 (diff)
downloadmpv-587b78b278e1d26c9809cdfc26a4aaf1bed2b6fe.tar.bz2
mpv-587b78b278e1d26c9809cdfc26a4aaf1bed2b6fe.tar.xz
10l - noticed by Soeren Mueller <soeren.mueller at webwasher.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7779 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_directx.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c
index b83a976369..9969062046 100644
--- a/libvo/vo_directx.c
+++ b/libvo/vo_directx.c
@@ -45,6 +45,7 @@ static LPDIRECTDRAWSURFACE g_lpddsOverlay = NULL; //Overlay Surface
static LPDIRECTDRAWSURFACE g_lpddsBack = NULL; //Back surface
static LPDIRECTDRAWCLIPPER g_lpddclipper; //clipper object, can only be used without overlay
static DDSURFACEDESC ddsdsf; //surface descripiton needed for locking
+static HINSTANCE hddraw_dll; //handle to ddraw.dll
static RECT rd; //rect of our stretched image
static RECT rs; //rect of our source image
static HWND hWnd=NULL; //handle to the window
@@ -330,12 +331,14 @@ static void uninit(void)
mp_msg(MSGT_VO, MSGL_DBG3,"<vo_directx><INFO>window destroyed\n");
if (g_lpdd != NULL) g_lpdd->lpVtbl->Release(g_lpdd);
mp_msg(MSGT_VO, MSGL_DBG3,"<vo_directx><INFO>directdrawobject released\n");
+ FreeLibrary( hddraw_dll);
+ hddraw_dll= NULL;
+ mp_msg(MSGT_VO, MSGL_DBG3,"<vo_directx><INFO>ddraw.dll freed\n");
mp_msg(MSGT_VO, MSGL_DBG3,"<vo_directx><INFO>uninited\n");
}
static uint32_t Directx_InitDirectDraw()
{
- HINSTANCE hddraw_dll;
HRESULT (WINAPI *OurDirectDrawCreate)(GUID *,LPDIRECTDRAW *,IUnknown *);
LPDIRECTDRAW lpDDraw;
mp_msg(MSGT_VO, MSGL_DBG3,"<vo_directx><INFO>Initing DirectDraw\n" );
@@ -372,9 +375,7 @@ static uint32_t Directx_InitDirectDraw()
}
//release our old interface and free ddraw.dll
lpDDraw->lpVtbl->Release(lpDDraw);
- FreeLibrary( hddraw_dll);
- hddraw_dll= NULL;
- mp_msg(MSGT_VO, MSGL_DBG3,"<vo_directx><INFO>lpDDraw released & hddraw freed\n" );
+ mp_msg(MSGT_VO, MSGL_DBG3,"<vo_directx><INFO>lpDDraw released\n" );
//set cooperativelevel: for our tests, no handle to a window is needed
if (g_lpdd->lpVtbl->SetCooperativeLevel(g_lpdd, NULL, DDSCL_NORMAL) != DD_OK)
{