Disable USE_GSTREAMER_GL is the package is not found
authorAlberto Garcia <berto@igalia.com>
Mon, 13 Jul 2020 23:38:23 +0000 (00:38 +0100)
committerAlberto Garcia <berto@igalia.com>
Mon, 13 Jul 2020 23:38:23 +0000 (00:38 +0100)
Forwarded: no

===================================================================

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

Source/cmake/GStreamerChecks.cmake

index 18b12f82a8d28c3423f3e6f314738898c1f6476c..98f1de7019f0131a23c05a5e1ce5d1266d9875c7 100644 (file)
@@ -31,7 +31,8 @@ if (ENABLE_VIDEO OR ENABLE_WEB_AUDIO)
     endif ()
 
     if (USE_GSTREAMER_GL AND 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 ()
 
     SET_AND_EXPOSE_TO_BUILD(USE_GSTREAMER TRUE)