mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-03 15:06:34 +00:00
d3d11bufferpool: Fix invalid access in debug print loop
Add missing condition check in for loop Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4255>
This commit is contained in:
parent
1ace1a5275
commit
af6dccd6e6
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ gst_d3d11_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
|
|||
GST_LOG_OBJECT (self, "Direct3D11 Allocation params");
|
||||
GST_LOG_OBJECT (self, "\tD3D11AllocationFlags: 0x%x",
|
||||
priv->d3d11_params->flags);
|
||||
for (i = 0; GST_VIDEO_MAX_PLANES; i++) {
|
||||
for (i = 0; i < GST_VIDEO_MAX_PLANES; i++) {
|
||||
if (desc[i].Format == DXGI_FORMAT_UNKNOWN)
|
||||
break;
|
||||
GST_LOG_OBJECT (self, "\t[plane %d] %dx%d, DXGI format %d",
|
||||
|
|
Loading…
Reference in a new issue