Blame webkitgtk-2.9.4-youtube.patch
|
Michael Catanzaro |
eda5bf1 |
diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
|
|
Michael Catanzaro |
eda5bf1 |
index 8929f2e..419330d 100644
|
|
Michael Catanzaro |
eda5bf1 |
--- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
|
|
Michael Catanzaro |
eda5bf1 |
+++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
|
|
Michael Catanzaro |
eda5bf1 |
@@ -1767,7 +1767,7 @@ static HashSet<String> mimeTypeCache()
|
|
Michael Catanzaro |
eda5bf1 |
"video/flv",
|
|
Michael Catanzaro |
eda5bf1 |
"video/mj2",
|
|
Michael Catanzaro |
eda5bf1 |
"video/mp2t",
|
|
Michael Catanzaro |
eda5bf1 |
- "video/mp4",
|
|
Michael Catanzaro |
eda5bf1 |
+// "video/mp4",
|
|
Michael Catanzaro |
eda5bf1 |
"video/mpeg",
|
|
Michael Catanzaro |
eda5bf1 |
"video/mpegts",
|
|
Michael Catanzaro |
eda5bf1 |
"video/ogg",
|
|
Michael Catanzaro |
51cd457 |
@@ -1794,6 +1794,20 @@ static HashSet<String> mimeTypeCache()
|
|
Michael Catanzaro |
eda5bf1 |
for (unsigned i = 0; i < (sizeof(mimeTypes) / sizeof(*mimeTypes)); ++i)
|
|
Michael Catanzaro |
eda5bf1 |
cache.add(String(mimeTypes[i]));
|
|
Michael Catanzaro |
eda5bf1 |
|
|
Michael Catanzaro |
eda5bf1 |
+ // Hack to make YouTube work, https://bugs.webkit.org/show_bug.cgi?id=135972
|
|
Michael Catanzaro |
eda5bf1 |
+ gint exit_status = 1;
|
|
Michael Catanzaro |
eda5bf1 |
+ GUniqueOutPtr<GError> error;
|
|
Michael Catanzaro |
51cd457 |
+ GUniqueOutPtr<char> stdout_to_discard;
|
|
Michael Catanzaro |
51cd457 |
+ GUniqueOutPtr<char> stderr_to_discard;
|
|
Michael Catanzaro |
51cd457 |
+ gboolean success = g_spawn_command_line_sync(
|
|
Michael Catanzaro |
51cd457 |
+ "rpm -qi gstreamer1-libav",
|
|
Michael Catanzaro |
51cd457 |
+ &stdout_to_discard.outPtr(),
|
|
Michael Catanzaro |
51cd457 |
+ &stderr_to_discard.outPtr(),
|
|
Michael Catanzaro |
51cd457 |
+ &exit_status,
|
|
Michael Catanzaro |
51cd457 |
+ &error.outPtr());
|
|
Michael Catanzaro |
eda5bf1 |
+ if (success && !error && !exit_status)
|
|
Michael Catanzaro |
eda5bf1 |
+ cache.add(String::fromUTF8("video/mp4"));
|
|
Michael Catanzaro |
eda5bf1 |
+
|
|
Michael Catanzaro |
eda5bf1 |
typeListInitialized = true;
|
|
Michael Catanzaro |
eda5bf1 |
return cache;
|
|
Michael Catanzaro |
eda5bf1 |
}
|