[vlc-commits] edgedetection: flush the filter chain when the filter is flushed

Steve Lhomme git at videolan.org
Mon Oct 12 15:55:43 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Oct  9 09:10:09 2020 +0200| [4782073935c02e50c7c174a530d1df4ce54dd8c8] | committer: Steve Lhomme

edgedetection: flush the filter chain when the filter is flushed

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4782073935c02e50c7c174a530d1df4ce54dd8c8
---

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

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



More information about the vlc-commits mailing list