<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">These changes were added in 
&lt;https://github.com/WebKit/webkit/commit/c7d6af038dcbfac95d0af4f43fbb945d73f6b1bb&gt;

they don't compile, as they use EGL unprotected, but even when some of them were protected by USE(EGL) there were
 errors when trying to play videos in the MiniBrowser. So I added protection to all the addition bits in
 the commit that were not initially protected. 


diff --git Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp
index ad632205..29a9eace 100644
--- Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp
+++ Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.cpp
@@ -23,7 +23,7 @@
 #if USE(GSTREAMER)
 #include &lt;gst/gst.h&gt;
 
-#if USE(GSTREAMER_GL)
+#if USE(WPE_VIDEO_PLANE_DISPLAY_DMABUF)
 #include &lt;gst/gl/egl/gsteglimage.h&gt;
 #endif
 
@@ -508,6 +508,7 @@ template&lt;&gt; void derefGPtr&lt;GstGLContext&gt;(GstGLContext* ptr)
         gst_object_unref(GST_OBJECT(ptr));
 }
 
+#if USE(WPE_VIDEO_PLANE_DISPLAY_DMABUF)
 template &lt;&gt; GRefPtr&lt;GstEGLImage&gt; adoptGRef(GstEGLImage* ptr)
 {
     return GRefPtr&lt;GstEGLImage&gt;(ptr, GRefPtrAdopt);
@@ -525,6 +526,7 @@ template &lt;&gt; void derefGPtr&lt;GstEGLImage&gt;(GstEGLImage* ptr)
     if (ptr)
         gst_egl_image_unref(ptr);
 }
+#endif //USE(WPE_VIDEO_PLANE_DISPLAY_DMABUF)
 
 #endif // USE(GSTREAMER_GL)
 
diff --git Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.h Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.h
index d940f8ca..bda2f024 100644
--- Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.h
+++ Source/WebCore/platform/graphics/gstreamer/GRefPtrGStreamer.h
@@ -30,9 +30,13 @@ typedef struct _WebKitWebSrc WebKitWebSrc;
 #if USE(GSTREAMER_GL)
 typedef struct _GstGLDisplay GstGLDisplay;
 typedef struct _GstGLContext GstGLContext;
+
+#if USE(WPE_VIDEO_PLANE_DISPLAY_DMABUF)
 typedef struct _GstEGLImage GstEGLImage;
 #endif
 
+#endif
+
 namespace WTF {
 
 template&lt;&gt; GRefPtr&lt;GstPlugin&gt; adoptGRef(GstPlugin* ptr);
@@ -133,9 +137,12 @@ template&lt;&gt; GRefPtr&lt;GstGLContext&gt; adoptGRef(GstGLContext* ptr);
 template&lt;&gt; GstGLContext* refGPtr&lt;GstGLContext&gt;(GstGLContext* ptr);
 template&lt;&gt; void derefGPtr&lt;GstGLContext&gt;(GstGLContext* ptr);
 
+#if USE(WPE_VIDEO_PLANE_DISPLAY_DMABUF)
 template&lt;&gt; GRefPtr&lt;GstEGLImage&gt; adoptGRef(GstEGLImage* ptr);
 template&lt;&gt; GstEGLImage* refGPtr&lt;GstEGLImage&gt;(GstEGLImage* ptr);
 template&lt;&gt; void derefGPtr&lt;GstEGLImage&gt;(GstEGLImage* ptr);
+#endif // USE(WPE_VIDEO_PLANE_DISPLAY_DMABUF)
+
 #endif
 
 } // namespace WTF
</pre></body></html>