videocrop: Cleanup spurious assignment
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 11 Nov 2019 18:18:52 +0000 (13:18 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 11 Nov 2019 19:09:47 +0000 (14:09 -0500)
These are just writing the same thing a second time.

gst/videocrop/gstvideocrop.c

index 9c0e1a8..fc6eefe 100644 (file)
@@ -524,11 +524,8 @@ gst_video_crop_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
   }
 
   crop_meta = gst_buffer_get_video_crop_meta (buf);
-  if (!crop_meta) {
+  if (!crop_meta)
     crop_meta = gst_buffer_add_video_crop_meta (buf);
-    crop_meta->width = vcrop->in_info.width;
-    crop_meta->height = vcrop->in_info.height;
-  }
 
   crop_meta->x += vcrop->crop_left;
   crop_meta->y += vcrop->crop_top;