From a66d2a3a8f36ef571a189b3499217390439ff34f Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Tue, 13 Oct 2020 13:01:36 +0200 Subject: [PATCH] d3d11_deinterlace: flush the history when closing the filter There is no guarantee it has been called before. The software implementations also does the same. --- modules/hw/d3d11/d3d11_deinterlace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/hw/d3d11/d3d11_deinterlace.c b/modules/hw/d3d11/d3d11_deinterlace.c index d37b3c8e05..a61160a9c0 100644 --- a/modules/hw/d3d11/d3d11_deinterlace.c +++ b/modules/hw/d3d11/d3d11_deinterlace.c @@ -235,6 +235,7 @@ picture_t *AllocPicture( filter_t *p_filter ) static void D3D11CloseDeinterlace(filter_t *filter) { filter_sys_t *sys = filter->p_sys; + Flush(filter); D3D11_ReleaseProcessor( &sys->d3d_proc ); vlc_video_context_Release(filter->vctx_out);