mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 07:08:23 +00:00
d3dvideosink: release existing D3D swap chain on init
https://bugzilla.gnome.org/show_bug.cgi?id=745159
This commit is contained in:
parent
c20c6cfb92
commit
29098129be
1 changed files with 4 additions and 0 deletions
|
@ -1313,6 +1313,10 @@ d3d_init_swap_chain (GstD3DVideoSink * sink, HWND hWnd)
|
|||
GST_DEBUG ("Direct3D stretch rect texture filter: %d", d3d_filtertype);
|
||||
|
||||
sink->d3d.filtertype = d3d_filtertype;
|
||||
|
||||
if (sink->d3d.swapchain != NULL)
|
||||
IDirect3DSwapChain9_Release (sink->d3d.swapchain);
|
||||
|
||||
sink->d3d.swapchain = d3d_swapchain;
|
||||
|
||||
ret = TRUE;
|
||||
|
|
Loading…
Reference in a new issue