opengl: glstero* are only built with full OpenGL
Don't try to register the elements unless they are built.
This commit is contained in:
parent
ea6ccb5655
commit
c2b49fa732
@ -207,14 +207,6 @@ plugin_init (GstPlugin * plugin)
|
|||||||
}
|
}
|
||||||
#endif /* HAVE_PNG */
|
#endif /* HAVE_PNG */
|
||||||
#endif /* HAVE_JPEG */
|
#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_GL_HAVE_OPENGL
|
||||||
if (!gst_element_register (plugin, "gltestsrc",
|
if (!gst_element_register (plugin, "gltestsrc",
|
||||||
GST_RANK_NONE, GST_TYPE_GL_TEST_SRC)) {
|
GST_RANK_NONE, GST_TYPE_GL_TEST_SRC)) {
|
||||||
@ -257,6 +249,14 @@ plugin_init (GstPlugin * plugin)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif /* HAVE_PNG */
|
#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 */
|
#endif /* GST_GL_HAVE_OPENGL */
|
||||||
#if GST_GL_HAVE_WINDOW_COCOA
|
#if GST_GL_HAVE_WINDOW_COCOA
|
||||||
if (!gst_element_register (plugin, "caopengllayersink",
|
if (!gst_element_register (plugin, "caopengllayersink",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user