gl/format: use our own GL format enum's instead of gstvideo's
authorMatthew Waters <matthew@centricular.com>
Mon, 13 Mar 2017 03:28:47 +0000 (14:28 +1100)
committerMatthew Waters <matthew@centricular.com>
Mon, 13 Mar 2017 10:10:58 +0000 (21:10 +1100)
They can describe in more detail (such as component sizes) the requested format.

ext/qt/gstqtsrc.cc

index 518a5f3..1cf9592 100644 (file)
@@ -393,7 +393,7 @@ gst_qt_src_decide_allocation (GstBaseSrc * bsrc, GstQuery * query)
 
   glparams =
       gst_gl_video_allocation_params_new (qt_src->context, &params, &vinfo, 0,
-      NULL, GST_GL_TEXTURE_TARGET_2D, GST_VIDEO_GL_TEXTURE_TYPE_RGBA);
+      NULL, GST_GL_TEXTURE_TARGET_2D, GST_GL_RGBA);
   gst_buffer_pool_config_set_gl_allocation_params (config,
       (GstGLAllocationParams *) glparams);
   gst_gl_allocation_params_free ((GstGLAllocationParams *) glparams);