vkupload: add video/x-raw to the VulkanBuffer uploader
authorMatthew Waters <matthew@centricular.com>
Thu, 1 Sep 2016 09:46:31 +0000 (19:46 +1000)
committerMatthew Waters <matthew@centricular.com>
Thu, 8 Sep 2016 06:14:41 +0000 (16:14 +1000)
Allows upstream elements that use our memory to passthrough without copying.

ext/vulkan/vkupload.c

index c0f0a97..4988c64 100644 (file)
@@ -161,7 +161,8 @@ _buffer_free (gpointer impl)
 }
 
 static GstStaticCaps _buffer_in_templ =
-GST_STATIC_CAPS ("video/x-raw(" GST_CAPS_FEATURE_MEMORY_VULKAN_BUFFER ")");
+    GST_STATIC_CAPS ("video/x-raw(" GST_CAPS_FEATURE_MEMORY_VULKAN_BUFFER ") ;"
+    "video/x-raw");
 static GstStaticCaps _buffer_out_templ =
 GST_STATIC_CAPS ("video/x-raw(" GST_CAPS_FEATURE_MEMORY_VULKAN_BUFFER ")");