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
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-04-17 15:39:36 +0200
commit9017f1903a434a6ca851f79befa11a4afe82a7d9 (patch)
tree2be3dc50a8ad386a325434989c11117bf7d0e7fe /gst/deinterlace2
parent6c8f4a36e35a72da4deb876055e95099a8c36669 (diff)
downloadgst-plugins-bad-9017f1903a434a6ca851f79befa11a4afe82a7d9.tar.gz
gst-plugins-bad-9017f1903a434a6ca851f79befa11a4afe82a7d9.tar.bz2
gst-plugins-bad-9017f1903a434a6ca851f79befa11a4afe82a7d9.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;