summaryrefslogtreecommitdiff
path: root/gst/videocrop
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2019-11-11 13:18:52 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2019-11-11 14:09:47 -0500
commite09b4e9cde5b4381d3ed36003a627bbefdc17ee2 (patch)
tree713c1bed6a7ab99e0e3caae65c89f7f795025f58 /gst/videocrop
parent0b25487cd155b7a7d74e92c874fe298ff00acaaf (diff)
downloadgstreamer-plugins-good-e09b4e9cde5b4381d3ed36003a627bbefdc17ee2.tar.gz
videocrop: Cleanup spurious assignment
These are just writing the same thing a second time.
Diffstat (limited to 'gst/videocrop')
-rw-r--r--gst/videocrop/gstvideocrop.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gst/videocrop/gstvideocrop.c b/gst/videocrop/gstvideocrop.c
index 9c0e1a831..fc6eefe74 100644
--- a/gst/videocrop/gstvideocrop.c
+++ b/gst/videocrop/gstvideocrop.c
@@ -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;