summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2017-01-26 19:52:07 +1100
committerMatthew Waters <matthew@centricular.com>2017-01-26 19:52:07 +1100
commitf6b81a612579641d5289e5947b76f0c822547a53 (patch)
tree74e69e69be09d0e2dfa9736025c19d5b497fba19 /ext
parentf3ef2ebd1f92cfad64cd341192dfc68223890bf2 (diff)
downloadgstreamer-plugins-bad-f6b81a612579641d5289e5947b76f0c822547a53.tar.gz
vkimagememory: use the correct enum for RGB16/BGR16 formats
vkimagememory.c:64:14: warning: implicit conversion from enumeration type 'GstVideoGLTextureType' to different enumeration type 'VkFormat' (aka 'enum VkFormat') [-Wenum-conversion] return GST_VIDEO_GL_TEXTURE_TYPE_RGB16; https://bugzilla.gnome.org/show_bug.cgi?id=777760
Diffstat (limited to 'ext')
-rw-r--r--ext/vulkan/vkimagememory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/vulkan/vkimagememory.c b/ext/vulkan/vkimagememory.c
index 31433fb24..074cf9ac0 100644
--- a/ext/vulkan/vkimagememory.c
+++ b/ext/vulkan/vkimagememory.c
@@ -61,7 +61,7 @@ gst_vulkan_format_from_video_format (GstVideoFormat v_format, guint plane)
break;
case GST_VIDEO_FORMAT_RGB16:
case GST_VIDEO_FORMAT_BGR16:
- return GST_VIDEO_GL_TEXTURE_TYPE_RGB16;
+ return VK_FORMAT_R5G6B5_UNORM_PACK16;
case GST_VIDEO_FORMAT_GRAY16_BE:
case GST_VIDEO_FORMAT_GRAY16_LE:
case GST_VIDEO_FORMAT_YUY2: