opengl: build/provide glstereomix/split on gles only systems
authorMatthew Waters <matthew@centricular.com>
Mon, 26 Oct 2015 13:36:41 +0000 (00:36 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:10 +0000 (19:32 +0000)
ext/gl/Makefile.am
ext/gl/gstopengl.c

index 1a634ef..e1b1447 100644 (file)
@@ -35,7 +35,10 @@ libgstopengl_la_SOURCES = \
        gstglmixer.c \
        gstglvideomixer.c \
        gstglfiltershader.c \
-       gstglfilterapp.c
+       gstglfilterapp.c \
+       gstglviewconvert.c \
+       gstglstereosplit.c \
+       gstglstereomix.c
 
 noinst_HEADERS = \
        gstglbasemixer.h \
@@ -54,16 +57,16 @@ noinst_HEADERS = \
        gstglmixer.h \
        gstglvideomixer.h \
        gstglfiltershader.h \
-       gstglfilterapp.h
+       gstglfilterapp.h \
+       gstglstereosplit.h \
+       gstglstereomix.h \
+       gstglviewconvert.h
 
 # full opengl required
 if USE_OPENGL
 libgstopengl_la_SOURCES += \
        gstglfilterglass.c \
        gstgldeinterlace.c \
-       gstglviewconvert.c \
-       gstglstereosplit.c \
-       gstglstereomix.c \
        gltestsrc.c \
        gstgltestsrc.c \
        gstglmosaic.c
@@ -71,9 +74,6 @@ libgstopengl_la_SOURCES += \
 noinst_HEADERS += \
        gstglfilterglass.h \
        gstgldeinterlace.h \
-       gstglstereosplit.h \
-       gstglstereomix.h \
-       gstglviewconvert.h \
        gltestsrc.h \
        gstgltestsrc.h \
        gstglmosaic.h \
index 7784f0a..5f2a1ac 100644 (file)
@@ -60,6 +60,7 @@
 #include "gstglfilterapp.h"
 #include "gstglstereosplit.h"
 #include "gstglstereomix.h"
+#include "gstglviewconvert.h"
 
 #if HAVE_GRAPHENE
 #include "gstgltransformation.h"
@@ -75,7 +76,6 @@
 #include "gstglfilterglass.h"
 /* #include "gstglfilterreflectedscreen.h" */
 #include "gstgldeinterlace.h"
-#include "gstglviewconvert.h"
 #include "gstglmosaic.h"
 #if HAVE_PNG
 #include "gstgldifferencematte.h"
@@ -204,6 +204,16 @@ plugin_init (GstPlugin * plugin)
           GST_RANK_NONE, GST_TYPE_GL_VIEW_CONVERT_ELEMENT)) {
     return FALSE;
   }
+
+  if (!gst_element_register (plugin, "glstereosplit",
+          GST_RANK_NONE, GST_TYPE_GL_STEREOSPLIT)) {
+    return FALSE;
+  }
+
+  if (!gst_element_register (plugin, "glstereomix",
+          GST_RANK_NONE, GST_TYPE_GL_STEREO_MIX)) {
+    return FALSE;
+  }
 #if HAVE_JPEG
 #if HAVE_PNG
   if (!gst_element_register (plugin, "gloverlay",
@@ -249,14 +259,6 @@ plugin_init (GstPlugin * plugin)
   }
 #endif
 #endif /* HAVE_PNG */
-  if (!gst_element_register (plugin, "glstereosplit",
-          GST_RANK_NONE, GST_TYPE_GL_STEREOSPLIT)) {
-    return FALSE;
-  }
-  if (!gst_element_register (plugin, "glstereomix",
-          GST_RANK_NONE, GST_TYPE_GL_STEREO_MIX)) {
-    return FALSE;
-  }
 #endif /* GST_GL_HAVE_OPENGL */
 #if GST_GL_HAVE_WINDOW_COCOA
   if (!gst_element_register (plugin, "caopengllayersink",