[vlc-devel] [PATCH v2 02/20] d3d11_surface: make sure the converter doesn't expect draining calls

Steve Lhomme robux4 at ycbcr.xyz
Wed Oct 14 14:39:02 CEST 2020


---
 modules/hw/d3d11/d3d11_surface.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/hw/d3d11/d3d11_surface.c b/modules/hw/d3d11/d3d11_surface.c
index e561853e03b..dadeb2686c3 100644
--- a/modules/hw/d3d11/d3d11_surface.c
+++ b/modules/hw/d3d11/d3d11_surface.c
@@ -513,6 +513,9 @@ static filter_t *CreateCPUtoGPUFilter( filter_t *p_this, const es_format_t *p_fm
         return NULL;
     }
     assert( p_filter->ops != NULL );
+    // we convert into a staging output, we shouldn't have multiple outputs
+    // we are a converter so we are not expected to output multiple pictures
+    assert( p_filter->ops->drain_video == NULL);
 
     return p_filter;
 }
-- 
2.26.2



More information about the vlc-devel mailing list