d3d11videosink: Add debug message for fallback reason

This commit is contained in:
Seungha Yang 2019-12-09 19:54:30 +09:00
parent 9835289239
commit abc1443cf0

View file

@ -661,17 +661,21 @@ gst_d3d11_video_sink_show_frame (GstVideoSink * sink, GstBuffer * buf)
mem = gst_buffer_peek_memory (buf, i); mem = gst_buffer_peek_memory (buf, i);
if (!gst_is_d3d11_memory (mem)) { if (!gst_is_d3d11_memory (mem)) {
GST_LOG_OBJECT (sink, "not a d3d11 memory, need fallback");
render_buf = NULL; render_buf = NULL;
break; break;
} }
dmem = (GstD3D11Memory *) mem; dmem = (GstD3D11Memory *) mem;
if (dmem->device != self->device) { if (dmem->device != self->device) {
GST_LOG_OBJECT (sink, "different d3d11 device, need fallback");
render_buf = NULL; render_buf = NULL;
break; break;
} }
if (self->need_srv && !gst_d3d11_memory_ensure_shader_resource_view (mem)) { 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; render_buf = NULL;
break; break;
} }