mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
vulkan/physical-device: don't assume that queue_family_ops is filled
On old enough vulkan (< 1.2), we will never retrieve the family operations and will perform a NULL pointer dereference when dumping the queue family op properties. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5547>
This commit is contained in:
parent
65365caa21
commit
48ab457d79
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ dump_queue_properties (GstVulkanPhysicalDevice * device, GError ** error)
|
||||||
" timestamp bits and a minimum image transfer granuality of %"
|
" timestamp bits and a minimum image transfer granuality of %"
|
||||||
GST_VULKAN_EXTENT3D_FORMAT, i, device->queue_family_props[i].queueCount,
|
GST_VULKAN_EXTENT3D_FORMAT, i, device->queue_family_props[i].queueCount,
|
||||||
device->queue_family_props[i].queueFlags, queue_flags_str,
|
device->queue_family_props[i].queueFlags, queue_flags_str,
|
||||||
device->queue_family_ops[i].video,
|
device->queue_family_ops ? device->queue_family_ops[i].video : 0,
|
||||||
device->queue_family_props[i].timestampValidBits,
|
device->queue_family_props[i].timestampValidBits,
|
||||||
GST_VULKAN_EXTENT3D_ARGS (device->
|
GST_VULKAN_EXTENT3D_ARGS (device->
|
||||||
queue_family_props[i].minImageTransferGranularity));
|
queue_family_props[i].minImageTransferGranularity));
|
||||||
|
|
Loading…
Reference in a new issue