From abc1443cf074c13731f5a9a7dc0f872e71f5dff4 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Mon, 9 Dec 2019 19:54:30 +0900 Subject: [PATCH] d3d11videosink: Add debug message for fallback reason --- sys/d3d11/gstd3d11videosink.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/d3d11/gstd3d11videosink.c b/sys/d3d11/gstd3d11videosink.c index e3adf37..23be9982 100644 --- a/sys/d3d11/gstd3d11videosink.c +++ b/sys/d3d11/gstd3d11videosink.c @@ -661,17 +661,21 @@ gst_d3d11_video_sink_show_frame (GstVideoSink * sink, GstBuffer * buf) mem = gst_buffer_peek_memory (buf, i); if (!gst_is_d3d11_memory (mem)) { + GST_LOG_OBJECT (sink, "not a d3d11 memory, need fallback"); render_buf = NULL; break; } dmem = (GstD3D11Memory *) mem; if (dmem->device != self->device) { + GST_LOG_OBJECT (sink, "different d3d11 device, need fallback"); render_buf = NULL; break; } if (self->need_srv && !gst_d3d11_memory_ensure_shader_resource_view (mem)) { + GST_LOG_OBJECT (sink, + "shader resource view is unavailable, need fallback"); render_buf = NULL; break; } -- 2.7.4