deinterlace: Reset frame/tc/caption pointer to NULL after moving it in the history

This commit is contained in:
Sebastian Dröge 2018-08-31 14:25:09 +03:00
parent 8b4db06733
commit abf2af1a66

View file

@ -1163,6 +1163,9 @@ gst_deinterlace_push_history (GstDeinterlace * self, GstBuffer * buffer)
self->field_history[i].tc = self->field_history[i - fields_to_push].tc;
self->field_history[i].caption =
self->field_history[i - fields_to_push].caption;
self->field_history[i - fields_to_push].frame = NULL;
self->field_history[i - fields_to_push].tc = NULL;
self->field_history[i - fields_to_push].caption = NULL;
}
if (field_layout == GST_DEINTERLACE_LAYOUT_AUTO) {