summaryrefslogtreecommitdiffstats
path: root/gst/deinterlace2
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-04-17 15:39:36 +0200
committerDave Robillard <dave@drobilla.net>2009-05-03 12:03:15 -0400
commitf8cf8dbd2c58ce68983e9b9d4037e19f05137c11 (patch)
tree85f762ea4fd962527343f5bd08d749a68a4027bd /gst/deinterlace2
parent390c8cd33977fb8730db614f02ab44ef11b59539 (diff)
downloadgst-plugins-bad-f8cf8dbd2c58ce68983e9b9d4037e19f05137c11.tar.gz
gst-plugins-bad-f8cf8dbd2c58ce68983e9b9d4037e19f05137c11.tar.bz2
gst-plugins-bad-f8cf8dbd2c58ce68983e9b9d4037e19f05137c11.zip
deinterlace2: Reset history if DISCONT is set on the incoming buffer
Diffstat (limited to 'gst/deinterlace2')
-rw-r--r--gst/deinterlace2/gstdeinterlace2.c5
1 files changed, 5 insertions, 0 deletions
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;