[vlc-devel] [PATCH 1/4] edgedetection: flush the filter chain when the filter is flushed

Steve Lhomme robux4 at ycbcr.xyz
Fri Oct 9 13:52:38 CEST 2020


---
 modules/video_filter/edgedetection.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/video_filter/edgedetection.c b/modules/video_filter/edgedetection.c
index d425473704f..1ae4e80da51 100644
--- a/modules/video_filter/edgedetection.c
+++ b/modules/video_filter/edgedetection.c
@@ -82,9 +82,14 @@ static const struct filter_video_callbacks filter_video_edge_cbs =
     new_frame, NULL,
 };
 
+static void Flush( filter_t *p_filter )
+{
+    filter_chain_VideoFlush( (filter_chain_t *)p_filter->p_sys );
+}
+
 static const struct vlc_filter_operations filter_ops =
 {
-    .filter_video = Filter,
+    .filter_video = Filter, .flush = Flush,
 };
 
 /*****************************************************************************
-- 
2.26.2



More information about the vlc-devel mailing list