deinterlace: Reset frame/tc/caption pointer to NULL after moving it in the history
authorSebastian Dröge <sebastian@centricular.com>
Fri, 31 Aug 2018 11:25:09 +0000 (14:25 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 31 Aug 2018 11:26:32 +0000 (14:26 +0300)
gst/deinterlace/gstdeinterlace.c

index 51e9133..595091c 100644 (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) {