[vlc-devel] [PATCH 06/19] image: make sure the converter doesn't expect draining calls

Steve Lhomme robux4 at ycbcr.xyz
Tue Oct 13 15:51:49 CEST 2020


---
 src/misc/image.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/misc/image.c b/src/misc/image.c
index 5ba958fd406..51939c46370 100644
--- a/src/misc/image.c
+++ b/src/misc/image.c
@@ -809,6 +809,8 @@ static filter_t *CreateConverter( vlc_object_t *p_this,
         return NULL;
     }
     assert( p_filter->ops != NULL );
+    // converters shouldn't have multiple outputs
+    assert( p_filter->ops->drain_video == NULL );
 
     return p_filter;
 }
-- 
2.26.2



More information about the vlc-devel mailing list