From 9017f1903a434a6ca851f79befa11a4afe82a7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 17 Apr 2009 15:39:36 +0200 Subject: deinterlace2: Reset history if DISCONT is set on the incoming buffer --- gst/deinterlace2/gstdeinterlace2.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gst/deinterlace2') diff --git a/gst/deinterlace2/gstdeinterlace2.c b/gst/deinterlace2/gstdeinterlace2.c index 3a42d0d5..da818f44 100644 --- a/gst/deinterlace2/gstdeinterlace2.c +++ b/gst/deinterlace2/gstdeinterlace2.c @@ -776,6 +776,11 @@ gst_deinterlace2_chain (GstPad * pad, GstBuffer * buf) self = GST_DEINTERLACE2 (GST_PAD_PARENT (pad)); + if (GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_FLAG_DISCONT)) { + GST_DEBUG_OBJECT (self, "DISCONT buffer, resetting history"); + gst_deinterlace2_reset_history (self); + } + gst_deinterlace2_push_history (self, buf); buf = NULL; -- cgit v1.2.1