d3dvideosink: create a d3d device for each sink and use the default swap chain in connection with flushing the GPU and not recreating the swap chain this avoids tearing also use GST_xx_DEBUG macros where appropriate

This commit is contained in:
Carsten Kroll 2011-08-22 16:31:38 +02:00 committed by Sebastian Dröge
parent ab22a64a13
commit 0c5037072a
2 changed files with 462 additions and 673 deletions

File diff suppressed because it is too large Load diff

View file

@ -83,8 +83,9 @@ struct _GstD3DVideoSink
gboolean is_hooked;
GMutex *d3d_swap_chain_lock;
LPDIRECT3DSWAPCHAIN9 d3d_swap_chain;
LPDIRECT3DSURFACE9 d3d_offscreen_surface;
LPDIRECT3DDEVICE9 d3ddev;
D3DPRESENT_PARAMETERS d3dpp;
D3DFORMAT d3dformat;
D3DFORMAT d3dfourcc;