[vlc-commits] dxva2_deinterlace: flush the history when closing the filter

Steve Lhomme git at videolan.org
Tue Oct 13 13:03:44 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Oct 13 13:01:47 2020 +0200| [b67e48ab5be9943de9b0ea4b8e25a79fe42fe32c] | committer: Steve Lhomme

dxva2_deinterlace: flush the history when closing the filter

There is no guarantee it has been called before.
The software implementations also does the same.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b67e48ab5be9943de9b0ea4b8e25a79fe42fe32c
---

 modules/hw/d3d9/dxva2_deinterlace.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/hw/d3d9/dxva2_deinterlace.c b/modules/hw/d3d9/dxva2_deinterlace.c
index 4e28f52c81..65cacdad59 100644
--- a/modules/hw/d3d9/dxva2_deinterlace.c
+++ b/modules/hw/d3d9/dxva2_deinterlace.c
@@ -326,6 +326,7 @@ static void D3D9CloseDeinterlace(filter_t *filter)
 {
     filter_sys_t *sys = filter->p_sys;
 
+    Flush(filter);
     IDirect3DSurface9_Release( sys->hw_surface );
     IDirectXVideoProcessor_Release( sys->processor );
     FreeLibrary( sys->hdecoder_dll );



More information about the vlc-commits mailing list