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

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