Blame webkitgtk-2.7.2-disable-codec-installer.patch

17ff09
From a15a3ac0571bc1e3a5fb9c62e5b19a1f005445fb Mon Sep 17 00:00:00 2001
17ff09
From: Michael Catanzaro <mcatanzaro@igalia.com>
17ff09
Date: Tue, 9 Dec 2014 18:34:31 +0100
17ff09
Subject: [PATCH] Disable the PackageKit codec installer
17ff09
17ff09
This is a workaround, not suitable for upstream.
17ff09
17ff09
https://bugzilla.gnome.org/show_bug.cgi?id=726326
17ff09
https://bugs.webkit.org/show_bug.cgi?id=135973
17ff09
---
17ff09
 .../platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp  | 9 +--------
17ff09
 1 file changed, 1 insertion(+), 8 deletions(-)
17ff09
17ff09
diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
17ff09
index 8c9a637..55e0b8b 100644
17ff09
--- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
17ff09
+++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
17ff09
@@ -1009,15 +1009,8 @@ gboolean MediaPlayerPrivateGStreamer::handleMessage(GstMessage* message)
17ff09
         gst_bin_recalculate_latency(GST_BIN(m_playBin.get()));
17ff09
         break;
17ff09
     case GST_MESSAGE_ELEMENT:
17ff09
-        if (gst_is_missing_plugin_message(message)) {
17ff09
-            gchar* detail = gst_missing_plugin_message_get_installer_detail(message);
17ff09
-            gchar* detailArray[2] = {detail, 0};
17ff09
-            GstInstallPluginsReturn result = gst_install_plugins_async(detailArray, 0, mediaPlayerPrivatePluginInstallerResultFunction, this);
17ff09
-            m_missingPlugins = result == GST_INSTALL_PLUGINS_STARTED_OK;
17ff09
-            g_free(detail);
17ff09
-        }
17ff09
 #if ENABLE(VIDEO_TRACK) && USE(GSTREAMER_MPEGTS)
17ff09
-        else {
17ff09
+        if (!gst_is_missing_plugin_message(message)) {
17ff09
             GstMpegtsSection* section = gst_message_parse_mpegts_section(message);
17ff09
             if (section) {
17ff09
                 processMpegTsSection(section);
17ff09
--
17ff09
2.1.0