From 7c041f19344866f915669882ddc104c051b34681 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 15 Dec 2019 15:44:20 +0900 Subject: [PATCH] d3d11videosink: Don't specify crop meta to allocation query d3d11videosink could not handle it for now --- sys/d3d11/gstd3d11videosink.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/sys/d3d11/gstd3d11videosink.c b/sys/d3d11/gstd3d11videosink.c index 746c623..a81d6ff 100644 --- a/sys/d3d11/gstd3d11videosink.c +++ b/sys/d3d11/gstd3d11videosink.c @@ -575,7 +575,6 @@ gst_d3d11_video_sink_propose_allocation (GstBaseSink * sink, GstQuery * query) g_object_unref (pool); gst_query_add_allocation_meta (query, GST_VIDEO_META_API_TYPE, NULL); - gst_query_add_allocation_meta (query, GST_VIDEO_CROP_META_API_TYPE, NULL); return TRUE; @@ -649,7 +648,6 @@ gst_d3d11_video_sink_show_frame (GstVideoSink * sink, GstBuffer * buf) GstMapInfo map; GstFlowReturn ret; GstVideoRectangle rect = { 0, }; - GstVideoCropMeta *crop; GstBuffer *render_buf; gboolean need_unref = FALSE; gint i; @@ -760,16 +758,9 @@ gst_d3d11_video_sink_show_frame (GstVideoSink * sink, GstBuffer * buf) gst_d3d11_window_show (self->window); - crop = gst_buffer_get_video_crop_meta (buf); - if (crop) { - rect.x = crop->x; - rect.y = crop->y; - rect.w = crop->width; - rect.h = crop->height; - } else { - rect.w = self->video_width; - rect.h = self->video_height; - } + /* FIXME: add support crop meta */ + rect.w = self->video_width; + rect.h = self->video_height; ret = gst_d3d11_window_render (self->window, render_buf, &rect); if (need_unref) -- 2.7.4