rendered paste bodyFrom ffd3c85d24a920e31a9ea7a5831b9ef4c16a01bc Mon Sep 17 00:00:00 2001From: Philippe Normand <pnormand@igalia.com>Date: Wed, 11 May 2011 18:28:43 +0200Subject: [PATCH] test patch for enterFullscreen--- .../graphics/gstreamer/GStreamerGWorld.cpp | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)diff --git a/Source/WebCore/platform/graphics/gstreamer/GStreamerGWorld.cpp b/Source/WebCore/platform/graphics/gstreamer/GStreamerGWorld.cppindex d5a612a..47a7bf2 100644--- a/Source/WebCore/platform/graphics/gstreamer/GStreamerGWorld.cpp+++ b/Source/WebCore/platform/graphics/gstreamer/GStreamerGWorld.cpp@@ -91,32 +91,32 @@ bool GStreamerGWorld::enterFullscreen() GstElement* tee = gst_bin_get_by_name(GST_BIN(videoSink.get()), "videoTee"); GstElement* valve = gst_bin_get_by_name(GST_BIN(videoSink.get()), "videoValve"); - g_object_set(valve, "drop-probability", 1.0, NULL);+ GstPad* srcPad = gst_element_get_request_pad(tee, "src%d"); // Add and link a queue, ffmpegcolorspace, videoscale and sink in the bin. gst_bin_add_many(GST_BIN(videoSink.get()), platformVideoSink, videoScale, colorspace, queue, NULL); #if GST_CHECK_VERSION(0, 10, 30) // Faster elements linking, if possible.- gst_element_link_pads_full(queue, "src", colorspace, "sink", GST_PAD_LINK_CHECK_NOTHING);- gst_element_link_pads_full(colorspace, "src", videoScale, "sink", GST_PAD_LINK_CHECK_NOTHING); gst_element_link_pads_full(videoScale, "src", platformVideoSink, "sink", GST_PAD_LINK_CHECK_NOTHING);+ gst_element_link_pads_full(colorspace, "src", videoScale, "sink", GST_PAD_LINK_CHECK_NOTHING);+ gst_element_link_pads_full(queue, "src", colorspace, "sink", GST_PAD_LINK_CHECK_NOTHING); #else gst_element_link_many(queue, colorspace, videoScale, platformVideoSink, NULL); #endif // Link a new src pad from tee to queue.- GstPad* srcPad = gst_element_get_request_pad(tee, "src%d"); GstPad* sinkPad = gst_element_get_static_pad(queue, "sink"); gst_pad_link(srcPad, sinkPad); gst_object_unref(GST_OBJECT(sinkPad)); m_dynamicPadName = gst_pad_get_name(srcPad);+ g_object_set(valve, "drop-probability", 1.0, NULL); // Roll new elements to pipeline state.- gst_element_sync_state_with_parent(queue);- gst_element_sync_state_with_parent(colorspace);- gst_element_sync_state_with_parent(videoScale); gst_element_sync_state_with_parent(platformVideoSink);+ gst_element_sync_state_with_parent(videoScale);+ gst_element_sync_state_with_parent(colorspace);+ gst_element_sync_state_with_parent(queue); gst_object_unref(tee); -- 1.7.4.4