mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
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:
parent
267422dde5
commit
8555eaf079
1 changed files with 0 additions and 11 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue