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
This commit is contained in:
Víctor Manuel Jáquez Leal 2016-11-04 18:04:36 +01:00
parent 267422dde5
commit 8555eaf079

View file

@ -544,17 +544,6 @@ gst_vaapidecode_push_decoded_frame (GstVideoDecoder * vdec,
GST_BUFFER_FLAG_SET (out_frame->output_buffer, GST_BUFFER_FLAG_SET (out_frame->output_buffer,
GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE); 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 (USE_GLX || USE_EGL)
if (decode->has_texture_upload_meta) if (decode->has_texture_upload_meta)
gst_buffer_ensure_texture_upload_meta (out_frame->output_buffer); gst_buffer_ensure_texture_upload_meta (out_frame->output_buffer);