Disable USE_GSTREAMER_GL is the package is not found
authorAlberto Garcia <berto@igalia.com>
Sun, 3 Mar 2019 13:49:26 +0000 (13:49 +0000)
committerAlberto Garcia <berto@igalia.com>
Sun, 3 Mar 2019 13:49:26 +0000 (13:49 +0000)
===================================================================

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

Source/cmake/GStreamerChecks.cmake

index 43947c66258c5c95ac16dae7b6f203ec66edbf70..2442939bff23b52779dc827eeafa7284f674b2b1 100644 (file)
@@ -37,7 +37,8 @@ if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
             message(FATAL_ERROR "GStreamer 1.10 is needed for USE_GSTREAMER_GL.")
         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 ()