Title: [231971] releases/WebKitGTK/webkit-2.20/Source/WebCore
- Revision
- 231971
- Author
- [email protected]
- Date
- 2018-05-18 11:42:28 -0700 (Fri, 18 May 2018)
Log Message
Merged r231801 - [WPE] Build failure with RPi userland drivers and gstreamer-gl
https://bugs.webkit.org/show_bug.cgi?id=185639
Reviewed by Philippe Normand.
When building for the RPi with userland drivers (dispmanx) override the
value of GST_GL_HAVE_GLSYNC to 1 to avoid that the gstreamer-gl headers
try to redefine the GLsync type that is already defined in libepoxy.
Defining __gl2_h_ is also needed to avoid other conflicting type
definitions that happen between libepoxy and RPi GLES2 userland
headers when the gstreamer-gl headers are included.
The issue doesn't happen with 1.14.0, so a check for that is added
as well.
No new tests, no behavior change. It is a build fix.
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
Modified Paths
Diff
Modified: releases/WebKitGTK/webkit-2.20/Source/WebCore/ChangeLog (231970 => 231971)
--- releases/WebKitGTK/webkit-2.20/Source/WebCore/ChangeLog 2018-05-18 18:42:23 UTC (rev 231970)
+++ releases/WebKitGTK/webkit-2.20/Source/WebCore/ChangeLog 2018-05-18 18:42:28 UTC (rev 231971)
@@ -1,3 +1,25 @@
+2018-05-15 Carlos Alberto Lopez Perez <[email protected]>
+
+ [WPE] Build failure with RPi userland drivers and gstreamer-gl
+ https://bugs.webkit.org/show_bug.cgi?id=185639
+
+ Reviewed by Philippe Normand.
+
+ When building for the RPi with userland drivers (dispmanx) override the
+ value of GST_GL_HAVE_GLSYNC to 1 to avoid that the gstreamer-gl headers
+ try to redefine the GLsync type that is already defined in libepoxy.
+
+ Defining __gl2_h_ is also needed to avoid other conflicting type
+ definitions that happen between libepoxy and RPi GLES2 userland
+ headers when the gstreamer-gl headers are included.
+
+ The issue doesn't happen with 1.14.0, so a check for that is added
+ as well.
+
+ No new tests, no behavior change. It is a build fix.
+
+ * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
+
2018-05-15 Thomas Klausner <[email protected]>
Add missing header to fix build.
Modified: releases/WebKitGTK/webkit-2.20/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp (231970 => 231971)
--- releases/WebKitGTK/webkit-2.20/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp 2018-05-18 18:42:23 UTC (rev 231970)
+++ releases/WebKitGTK/webkit-2.20/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp 2018-05-18 18:42:28 UTC (rev 231971)
@@ -70,7 +70,17 @@
#if USE(LIBEPOXY)
// Include the <epoxy/gl.h> header before <gst/gl/gl.h>.
#include <epoxy/gl.h>
+
+// Workaround build issue with RPi userland GLESv2 headers and libepoxy <https://webkit.org/b/185639>
+#if !GST_CHECK_VERSION(1, 14, 0)
+#include <gst/gl/gstglconfig.h>
+#if defined(GST_GL_HAVE_WINDOW_DISPMANX) && GST_GL_HAVE_WINDOW_DISPMANX
+#define __gl2_h_
+#undef GST_GL_HAVE_GLSYNC
+#define GST_GL_HAVE_GLSYNC 1
#endif
+#endif // !GST_CHECK_VERSION(1, 14, 0)
+#endif // USE(LIBEPOXY)
#define GST_USE_UNSTABLE_API
#include <gst/gl/gl.h>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes