[vlc-devel] [PATCH 05/19] ci_filters: make sure converters doesn't expect draining calls

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


---
 modules/video_filter/ci_filters.m | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_filter/ci_filters.m b/modules/video_filter/ci_filters.m
index 162937b6bda..70f1333fbaa 100644
--- a/modules/video_filter/ci_filters.m
+++ b/modules/video_filter/ci_filters.m
@@ -568,6 +568,8 @@ CVPX_to_CVPX_converter_Create(filter_t *filter, bool to_rgba)
         return NULL;
     }
     assert( converter->ops != NULL );
+    // converters shouldn't have multiple outputs
+    assert( converter->ops->drain_video == NULL);
 
     return converter;
 }
-- 
2.26.2



More information about the vlc-devel mailing list