diff --git a/subprojects/gst-plugins-bad/sys/applemedia/videotexturecache-vulkan.mm b/subprojects/gst-plugins-bad/sys/applemedia/videotexturecache-vulkan.mm index 017612a111..a889bf0a4e 100644 --- a/subprojects/gst-plugins-bad/sys/applemedia/videotexturecache-vulkan.mm +++ b/subprojects/gst-plugins-bad/sys/applemedia/videotexturecache-vulkan.mm @@ -288,7 +288,9 @@ gst_io_surface_vulkan_memory_set_surface (GstIOSurfaceVulkanMemory * memory, IOSurfaceIncrementUseCount (surface); gpu = gst_vulkan_device_get_physical_device (vk_mem->device); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; vkGetMTLDeviceMVK (gpu, &mtl_dev); + G_GNUC_END_IGNORE_DEPRECATIONS; /* We cannot use vkUseIOSurfaceMVK() for multi-planer as MoltenVK does not * support them. */ @@ -300,7 +302,9 @@ gst_io_surface_vulkan_memory_set_surface (GstIOSurfaceVulkanMemory * memory, texture_data->pixbuf = (CVPixelBufferRef) vk_mem->user_data; texture_data->texture = (__bridge_retained gpointer) texture; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; VkResult err = vkSetMTLTextureMVK (memory->vulkan_mem.image, texture); + G_GNUC_END_IGNORE_DEPRECATIONS; GST_DEBUG ("bound texture %p to image %" GST_VULKAN_NON_DISPATCHABLE_HANDLE_FORMAT ": 0x%x", texture, memory->vulkan_mem.image, err);