summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2015-06-18 22:11:05 -0400
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2015-06-18 22:11:05 -0400
commitc2b49fa73293476fc76f7c8d31e9c912cdb364d7 (patch)
tree431c6ab3babfc64d801edced56c2adc49ffd5098
parentea6ccb565537be5c0a0c6d83aafe22e76d26dbb7 (diff)
opengl: glstero* are only built with full OpenGL
Don't try to register the elements unless they are built.
-rw-r--r--ext/gl/gstopengl.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/gl/gstopengl.c b/ext/gl/gstopengl.c
index 7b43e49e1..ebc7f1396 100644
--- a/ext/gl/gstopengl.c
+++ b/ext/gl/gstopengl.c
@@ -207,14 +207,6 @@ plugin_init (GstPlugin * plugin)
}
#endif /* HAVE_PNG */
#endif /* HAVE_JPEG */
- 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 GST_GL_HAVE_OPENGL
if (!gst_element_register (plugin, "gltestsrc",
GST_RANK_NONE, GST_TYPE_GL_TEST_SRC)) {
@@ -257,6 +249,14 @@ 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",