From 8555eaf07967a660ba4e3695d22c88ef4561eef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 4 Nov 2016 18:04:36 +0100 Subject: [PATCH] vaapidecode: don't add video crop meta Since the differentiation of negotiation caps and allocation caps, there is no need to add a video crop meta with the negotiation caps. Hence, removing it. https://bugzilla.gnome.org/show_bug.cgi?id=773948 --- gst/vaapi/gstvaapidecode.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 0279ceff2f..db490615de 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -544,17 +544,6 @@ gst_vaapidecode_push_decoded_frame (GstVideoDecoder * vdec, GST_BUFFER_FLAG_SET (out_frame->output_buffer, GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE); } - - if (crop_rect) { - GstVideoCropMeta *const crop_meta = - gst_buffer_add_video_crop_meta (out_frame->output_buffer); - if (crop_meta) { - crop_meta->x = crop_rect->x; - crop_meta->y = crop_rect->y; - crop_meta->width = crop_rect->width; - crop_meta->height = crop_rect->height; - } - } #if (USE_GLX || USE_EGL) if (decode->has_texture_upload_meta) gst_buffer_ensure_texture_upload_meta (out_frame->output_buffer);