vk-video: Fix uint64_t string format errors

With clang on macOS:

```
error: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long')
...
error: format specifies type 'unsigned long' but the argument has type 'VkImageView' (aka 'unsigned long long')
```

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7091>
This commit is contained in:
Nirbheek Chauhan 2024-06-28 17:19:46 +05:30
parent 156a016313
commit 8619e163bf
3 changed files with 8 additions and 7 deletions

View file

@ -1096,8 +1096,8 @@ _fill_ref_slot (GstVulkanH264Decoder * self, GstH264Picture * picture,
if (ref) if (ref)
*ref = &pic->base; *ref = &pic->base;
GST_TRACE_OBJECT (self, "0x%lx slotIndex: %d", res->imageViewBinding, GST_TRACE_OBJECT (self, "0x%" G_GUINT64_FORMAT "x slotIndex: %d",
slot->slotIndex); res->imageViewBinding, slot->slotIndex);
} }
static GstFlowReturn static GstFlowReturn

View file

@ -1391,8 +1391,8 @@ _fill_ref_slot (GstVulkanH265Decoder * self, GstH265Picture * picture,
*ref = &pic->base; *ref = &pic->base;
GST_TRACE_OBJECT (self, "0x%lx slotIndex: %d", res->imageViewBinding, GST_TRACE_OBJECT (self, "0x%" G_GUINT64_FORMAT "x slotIndex: %d",
slot->slotIndex); res->imageViewBinding, slot->slotIndex);
} }
static GstFlowReturn static GstFlowReturn

View file

@ -746,8 +746,9 @@ gst_vulkan_encoder_start (GstVulkanEncoder * self,
if (priv->enc_caps.maxBitrate if (priv->enc_caps.maxBitrate
&& priv->prop.average_bitrate >= priv->enc_caps.maxBitrate) { && priv->prop.average_bitrate >= priv->enc_caps.maxBitrate) {
g_set_error (error, GST_VULKAN_ERROR, VK_ERROR_INITIALIZATION_FAILED, g_set_error (error, GST_VULKAN_ERROR, VK_ERROR_INITIALIZATION_FAILED,
"The driver does not support the average bitrate requested %d, driver caps: %ld", "The driver does not support the average bitrate requested %d, driver caps: %"
priv->prop.average_bitrate, priv->enc_caps.maxBitrate); G_GUINT64_FORMAT, priv->prop.average_bitrate,
priv->enc_caps.maxBitrate);
GST_OBJECT_UNLOCK (self); GST_OBJECT_UNLOCK (self);
return FALSE; return FALSE;
} }
@ -758,7 +759,7 @@ gst_vulkan_encoder_start (GstVulkanEncoder * self,
GST_LOG_OBJECT (self, "Capabilities for %" GST_PTR_FORMAT ":\n" GST_LOG_OBJECT (self, "Capabilities for %" GST_PTR_FORMAT ":\n"
" Width from %i to %i\n" " Width from %i to %i\n"
" Height from %i to %i\n" " Height from %i to %i\n"
" MaxBitrate: %ld\n" " MaxBitrate: %" G_GUINT64_FORMAT "\n"
" Encode mode:%s", " Encode mode:%s",
priv->profile_caps, priv->profile_caps,
priv->caps.caps.minCodedExtent.width, priv->caps.caps.minCodedExtent.width,