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

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


---
 src/video_output/vout_subpictures.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 1afa7bd093e..45b1087ca6d 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -310,6 +310,8 @@ static filter_t *SpuRenderCreateAndLoadScale(vlc_object_t *object,
         return NULL;
     }
     assert( scale->ops != NULL );
+    // converters shouldn't have multiple outputs
+    assert( scale->ops->drain_video == NULL);
 
     return scale;
 }
-- 
2.26.2



More information about the vlc-devel mailing list