mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
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:
parent
156a016313
commit
8619e163bf
3 changed files with 8 additions and 7 deletions
|
@ -1096,8 +1096,8 @@ _fill_ref_slot (GstVulkanH264Decoder * self, GstH264Picture * picture,
|
|||
if (ref)
|
||||
*ref = &pic->base;
|
||||
|
||||
GST_TRACE_OBJECT (self, "0x%lx slotIndex: %d", res->imageViewBinding,
|
||||
slot->slotIndex);
|
||||
GST_TRACE_OBJECT (self, "0x%" G_GUINT64_FORMAT "x slotIndex: %d",
|
||||
res->imageViewBinding, slot->slotIndex);
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
|
|
@ -1391,8 +1391,8 @@ _fill_ref_slot (GstVulkanH265Decoder * self, GstH265Picture * picture,
|
|||
*ref = &pic->base;
|
||||
|
||||
|
||||
GST_TRACE_OBJECT (self, "0x%lx slotIndex: %d", res->imageViewBinding,
|
||||
slot->slotIndex);
|
||||
GST_TRACE_OBJECT (self, "0x%" G_GUINT64_FORMAT "x slotIndex: %d",
|
||||
res->imageViewBinding, slot->slotIndex);
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
|
|
@ -746,8 +746,9 @@ gst_vulkan_encoder_start (GstVulkanEncoder * self,
|
|||
if (priv->enc_caps.maxBitrate
|
||||
&& priv->prop.average_bitrate >= priv->enc_caps.maxBitrate) {
|
||||
g_set_error (error, GST_VULKAN_ERROR, VK_ERROR_INITIALIZATION_FAILED,
|
||||
"The driver does not support the average bitrate requested %d, driver caps: %ld",
|
||||
priv->prop.average_bitrate, priv->enc_caps.maxBitrate);
|
||||
"The driver does not support the average bitrate requested %d, driver caps: %"
|
||||
G_GUINT64_FORMAT, priv->prop.average_bitrate,
|
||||
priv->enc_caps.maxBitrate);
|
||||
GST_OBJECT_UNLOCK (self);
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -758,7 +759,7 @@ gst_vulkan_encoder_start (GstVulkanEncoder * self,
|
|||
GST_LOG_OBJECT (self, "Capabilities for %" GST_PTR_FORMAT ":\n"
|
||||
" Width from %i to %i\n"
|
||||
" Height from %i to %i\n"
|
||||
" MaxBitrate: %ld\n"
|
||||
" MaxBitrate: %" G_GUINT64_FORMAT "\n"
|
||||
" Encode mode:%s",
|
||||
priv->profile_caps,
|
||||
priv->caps.caps.minCodedExtent.width,
|
||||
|
|
Loading…
Reference in a new issue