deinterlace: Fix required fields logic
authorRobert Swain <robert.swain@collabora.co.uk>
Wed, 6 Oct 2010 09:29:55 +0000 (11:29 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 6 Oct 2010 13:05:36 +0000 (15:05 +0200)
commit6a6f90e745b2d3e629bafa7b5d255e5d006e7ff3
treea1a1f574fb4048110d5653abf95ef211cb2ddec3
parent0bffae750bebaa57c7b89df0a916abc8904758ce
deinterlace: Fix required fields logic

Both history_count and fields_required count from 1. As per the while loop
condition that follows this code, to perform the deinterlacing method, we need
history_count >= fields_required fields in the history. Therefore if we have
history_count < fields_required (not fields_required + 1), we need more fields.
gst/deinterlace/gstdeinterlace.c