Disable USE_GSTREAMER_GL is the package is not found
authorAlberto Garcia <berto@igalia.com>
Tue, 10 Apr 2018 18:34:42 +0000 (19:34 +0100)
committerAlberto Garcia <berto@igalia.com>
Tue, 10 Apr 2018 18:34:42 +0000 (19:34 +0100)
===================================================================

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

Source/cmake/GStreamerChecks.cmake

index 97af7d1dfa29e797f399da0949e7801d8027e995..1a0027cef52fe547fc2aac0ba445cb2a81540026 100644 (file)
@@ -43,7 +43,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 ()