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

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