mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
deinterlace2: Reset history if DISCONT is set on the incoming buffer
This commit is contained in:
parent
6c8f4a36e3
commit
9017f1903a
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue