glcolorconvert: use the correct caps feature for supported caps
authorMatthew Waters <matthew@centricular.com>
Mon, 2 Feb 2015 10:07:48 +0000 (21:07 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:54 +0000 (19:31 +0000)
glcolorconvert currently only supports converting between GLMemory
targets.

gst-libs/gst/gl/gstglcolorconvert.h

index c7c9cab..a6a5232 100644 (file)
@@ -93,7 +93,9 @@ struct _GstGLColorConvertClass
  *
  * The currently supported #GstCaps that can be converted
  */
-#define GST_GL_COLOR_CONVERT_VIDEO_CAPS GST_VIDEO_CAPS_MAKE (GST_GL_COLOR_CONVERT_FORMATS)
+#define GST_GL_COLOR_CONVERT_VIDEO_CAPS \
+    GST_VIDEO_CAPS_MAKE_WITH_FEATURES (GST_CAPS_FEATURE_MEMORY_GL_MEMORY, \
+        GST_GL_COLOR_CONVERT_FORMATS)
 
 GstGLColorConvert * gst_gl_color_convert_new (GstGLContext * context);