Title: [251772] trunk/Source/WebCore
Revision
251772
Author
[email protected]
Date
2019-10-30 07:14:58 -0700 (Wed, 30 Oct 2019)

Log Message

REGRESSION(r249428): [GStreamer] VP9 video rendered green
https://bugs.webkit.org/show_bug.cgi?id=201422
<rdar://problem/55945741>

Patch by Philippe Normand <[email protected]> on 2019-10-30
Reviewed by Carlos Garcia Campos.

Enable the texture upload GStreamer meta code path. Until
GStreamer 1.16.2 this workaround is needed to fix VP9 (vp9dec)
rendering.

Original patch by: Chris Lord <[email protected]>

* platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
(WebCore::MediaPlayerPrivateGStreamerBase::createVideoSinkGL):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (251771 => 251772)


--- trunk/Source/WebCore/ChangeLog	2019-10-30 07:59:03 UTC (rev 251771)
+++ trunk/Source/WebCore/ChangeLog	2019-10-30 14:14:58 UTC (rev 251772)
@@ -1,3 +1,20 @@
+2019-10-30  Philippe Normand  <[email protected]>
+
+        REGRESSION(r249428): [GStreamer] VP9 video rendered green
+        https://bugs.webkit.org/show_bug.cgi?id=201422
+        <rdar://problem/55945741>
+
+        Reviewed by Carlos Garcia Campos.
+
+        Enable the texture upload GStreamer meta code path. Until
+        GStreamer 1.16.2 this workaround is needed to fix VP9 (vp9dec)
+        rendering.
+
+        Original patch by: Chris Lord <[email protected]>
+
+        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
+        (WebCore::MediaPlayerPrivateGStreamerBase::createVideoSinkGL):
+
 2019-10-30  Carlos Garcia Campos  <[email protected]>
 
         ImageDecoders: use a thread safe data buffer for Cairo backing store

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


--- trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp	2019-10-30 07:59:03 UTC (rev 251771)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp	2019-10-30 14:14:58 UTC (rev 251772)
@@ -1201,7 +1201,19 @@
     gst_bin_add_many(GST_BIN(videoSink), upload, colorconvert, appsink, nullptr);
 
     GRefPtr<GstCaps> caps = adoptGRef(gst_caps_from_string("video/x-raw, format = (string) " GST_GL_CAPS_FORMAT));
-    gst_caps_set_features(caps.get(), 0, gst_caps_features_new(GST_CAPS_FEATURE_MEMORY_GL_MEMORY, nullptr));
+    GstCapsFeatures* features = gst_caps_features_new(GST_CAPS_FEATURE_MEMORY_GL_MEMORY, nullptr);
+
+    // Workaround until we can depend on GStreamer 1.16.2.
+    // https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/commit/8d32de090554cf29fe359f83aa46000ba658a693
+    // Adding the texture upload meta here allows glupload to add video meta to
+    // the buffers, without needing the patch above. However this specific caps
+    // feature is going to be removed from GStreamer so it is considered a
+    // short-term workaround.
+    // See also https://bugs.webkit.org/show_bug.cgi?id=201422
+    if (!webkitGstCheckVersion(1, 16, 2))
+        gst_caps_features_add(features, GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META);
+
+    gst_caps_set_features(caps.get(), 0, features);
     g_object_set(appsink, "caps", caps.get(), nullptr);
 
     result &= gst_element_link_many(upload, colorconvert, appsink, nullptr);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to