[MPlayer-dev-eng] [PATCH] Direct3D libvo driver

Jim Hauxwell james at dattrax.co.uk
Tue Nov 18 02:31:43 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've been banging my head against the wall with this one.  It still
doesn't work in vista (-vo gl does, so it's defiantly the vo module
causing the issue)

I stripped it back to the bare minimum and the crash seems to happen on

/* vo_w32_window is w32_common variable. It's a handle to the window. */
if (FAILED (IDirect3D9_CreateDevice(gpD3DHandle,
                                    D3DADAPTER_DEFAULT,
                                    D3DDEVTYPE_HAL, vo_w32_window,
                                    D3DCREATE_SOFTWARE_VERTEXPROCESSING,
                                    /* D3DDEVCAPS HWTRANSFORMANDLIGHT */
                                    &PresentParams, &gpD3DDevice)))
{
    mp_msg(MSGT_VO,MSGL_ERR,
           "<vo_direct3d><INFO>Could not create the D3D device\n");
    return FALSE;
}

If I include this then crash, if I leave it out then I get the window +
audio playing but obviously no video.

Any ideas anyone?


As a general comment, I've been doing some looking about.  I think that
D3DRenderFrame() is probably missing a

IDirect3DDevice9_BeginScene(gpD3DDevice);
IDirect3DDevice9_EndScene(gpD3DDevice);

pair, for correctness.  Make sure the exit points have the requisite

IDirect3DDevice9_EndScene(gpD3DDevice);


Jim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkiGv8ACgkQhrNWoHjgI1B4wQCbBPWRPWUepUVtq7hNZPvJxXEi
10wAoLnZvQi3Xv/awzsEuk2+k3Euje0m
=6mXv
-----END PGP SIGNATURE-----




More information about the MPlayer-dev-eng mailing list