Title: [208789] trunk/Source/WebCore
Revision
208789
Author
[email protected]
Date
2016-11-16 04:00:03 -0800 (Wed, 16 Nov 2016)

Log Message

[GStreamer][GL] build broken when using gst-plugins-bad from git
https://bugs.webkit.org/show_bug.cgi?id=164776

Reviewed by Xabier Rodriguez-Calvar.

* platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
(WebCore::MediaPlayerPrivateGStreamerBase::requestGLContext): The
GStreamer GL context GType was renamed, add an ifdef taking this
into account.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (208788 => 208789)


--- trunk/Source/WebCore/ChangeLog	2016-11-16 11:39:43 UTC (rev 208788)
+++ trunk/Source/WebCore/ChangeLog	2016-11-16 12:00:03 UTC (rev 208789)
@@ -1,3 +1,15 @@
+2016-11-16  Philippe Normand  <[email protected]>
+
+        [GStreamer][GL] build broken when using gst-plugins-bad from git
+        https://bugs.webkit.org/show_bug.cgi?id=164776
+
+        Reviewed by Xabier Rodriguez-Calvar.
+
+        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
+        (WebCore::MediaPlayerPrivateGStreamerBase::requestGLContext): The
+        GStreamer GL context GType was renamed, add an ifdef taking this
+        into account.
+
 2016-11-16  Yusuke Suzuki  <[email protected]>
 
         [ES6] Integrate ES6 Modules into WebCore

Modified: trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp (208788 => 208789)


--- trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp	2016-11-16 11:39:43 UTC (rev 208788)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp	2016-11-16 12:00:03 UTC (rev 208789)
@@ -307,7 +307,11 @@
     if (!g_strcmp0(contextType, "gst.gl.app_context")) {
         GstContext* appContext = gst_context_new("gst.gl.app_context", TRUE);
         GstStructure* structure = gst_context_writable_structure(appContext);
+#if GST_CHECK_VERSION(1, 11, 0)
+        gst_structure_set(structure, "context", GST_TYPE_GL_CONTEXT, player->gstGLContext(), nullptr);
+#else
         gst_structure_set(structure, "context", GST_GL_TYPE_CONTEXT, player->gstGLContext(), nullptr);
+#endif
         return appContext;
     }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to