Fixes problem of infinite loop in gst_deinterlace_reset_history.
Last field in the history was never deinterlaced because idx becomes negative.
Happens e.g. with method=scalerbob fields=bottom or
method=greedyl fields=top
https://bugzilla.gnome.org/show_bug.cgi?id=695644
https://bugzilla.gnome.org/show_bug.cgi?id=693173
if (!flushing && self->cur_field_idx < 1) {
goto need_more;
+ } else if (self->cur_field_idx < 0 && flushing) {
+ self->cur_field_idx++;
}
if (self->fields == GST_DEINTERLACE_ALL || IS_TELECINE (interlacing_mode))