[GLib] Display GStreamer version in about:gpu page

Rubber-stamped by Carlos Garcia Campos.

* UIProcess/API/glib/WebKitProtocolHandler.cpp:
(WebKit::WebKitProtocolHandler::handleGPU):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@253150 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog
index 314d7fc..2b75af6 100644
--- a/Source/WebKit/ChangeLog
+++ b/Source/WebKit/ChangeLog
@@ -1,3 +1,12 @@
+2019-12-05  Philippe Normand  <pnormand@igalia.com>
+
+        [GLib] Display GStreamer version in about:gpu page
+
+        Rubber-stamped by Carlos Garcia Campos.
+
+        * UIProcess/API/glib/WebKitProtocolHandler.cpp:
+        (WebKit::WebKitProtocolHandler::handleGPU):
+
 2019-12-05  youenn fablet  <youenn@apple.com>
 
         inspector/page/overrideSetting-MockCaptureDevicesEnabled.html is failing after removal of internals.setMockMediaCaptureDevicesEnabled API
diff --git a/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp b/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
index 5a8b647..24e55fc7 100644
--- a/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
+++ b/Source/WebKit/UIProcess/API/glib/WebKitProtocolHandler.cpp
@@ -67,6 +67,10 @@
 #include <WebCore/OpenGLShims.h>
 #endif
 
+#if USE(GSTREAMER)
+#include <gst/gst.h>
+#endif
+
 namespace WebKit {
 using namespace WebCore;
 
@@ -223,6 +227,16 @@
         " </tbody></tr>",
         CAIRO_VERSION_STRING, cairo_version_string());
 
+#if USE(GSTREAMER)
+    GUniquePtr<char> gstVersion(gst_version_string());
+    g_string_append_printf(html,
+        " <tbody><tr>"
+        "  <td><div class=\"titlename\">GStreamer version</div></td>"
+        "  <td>%d.%d.%d (build) %s (runtime)</td>"
+        " </tbody></tr>",
+        GST_VERSION_MAJOR, GST_VERSION_MINOR, GST_VERSION_MICRO, gstVersion.get());
+#endif
+
 #if PLATFORM(GTK)
     g_string_append_printf(html,
         " <tbody><tr>"