Disable USE_GSTREAMER_GL is the package is not found
authorAlberto Garcia <berto@igalia.com>
Tue, 19 Dec 2017 16:31:33 +0000 (16:31 +0000)
committerAlberto Garcia <berto@igalia.com>
Tue, 19 Dec 2017 16:31:33 +0000 (16:31 +0000)
===================================================================

Gbp-Pq: Name detect-gstreamer-gl.patch

Source/cmake/OptionsGTK.cmake

index eeb38eeb1ba2c3a17fdf68c81e24427a4d4f7806..cabe7b7693882da0878b379560f322ed87b8cc81 100644 (file)
@@ -367,7 +367,8 @@ if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
             message(STATUS "Disabling GSTREAMER_GL as the GStreamer version is older than 1.10.")
         else ()
             if (NOT PC_GSTREAMER_GL_FOUND)
-                message(FATAL_ERROR "GStreamerGL is needed for USE_GSTREAMER_GL.")
+                set(USE_GSTREAMER_GL OFF)
+                message(STATUS "GStreamerGL is needed for USE_GSTREAMER_GL.")
             endif ()
         endif ()
     endif ()