qmlglsrc: fix vertical flip matrix
authorMatthew Waters <matthew@centricular.com>
Fri, 25 Oct 2019 10:47:01 +0000 (21:47 +1100)
committerMatthew Waters <matthew@centricular.com>
Fri, 25 Oct 2019 11:09:20 +0000 (22:09 +1100)
Some time ago libgstgl defined the majorness of matrices it uses.
The majorness used by qmlglsrc was incompatible with the libgstgl.

ext/qt/gstqtsrc.cc

index 1cf9592..1141365 100644 (file)
@@ -79,9 +79,9 @@ G_DEFINE_TYPE_WITH_CODE (GstQtSrc, gst_qt_src,
 
 static const gfloat vertical_flip_matrix[] = {
   1.0f, 0.0f, 0.0f, 0.0f,
-  0.0f, -1.0f, 0.0f, 1.0f,
+  0.0f, -1.0f, 0.0f, 0.0f,
   0.0f, 0.0f, 1.0f, 0.0f,
-  0.0f, 0.0f, 0.0f, 1.0f,
+  0.0f, 1.0f, 0.0f, 1.0f,
 };
 
 static void