mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
videocrop: Cleanup spurious assignment
These are just writing the same thing a second time.
This commit is contained in:
parent
0b25487cd1
commit
e09b4e9cde
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue