mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
d3d11videosink: Add debug message for fallback reason
This commit is contained in:
parent
9835289239
commit
abc1443cf0
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue