Disable USE_GSTREAMER_GL is the package is not found
authorAlberto Garcia <berto@igalia.com>
Wed, 24 Jan 2018 11:30:06 +0000 (11:30 +0000)
committerAlberto Garcia <berto@igalia.com>
Wed, 24 Jan 2018 11:30:06 +0000 (11:30 +0000)
===================================================================

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

Source/cmake/OptionsGTK.cmake

index 3828e47b19201d9fa9222ecb645f70a80deb8978..0be90fdc48433cf5246ea31360e29c8f0c313b13 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 ()