|
| 1 | +diff --git a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp |
| 2 | +index 0a875d2..f9343e0 100644 |
| 3 | +--- a/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp |
| 4 | ++++ b/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp |
| 5 | +@@ -2359,12 +2359,32 @@ void MediaPlayerPrivateGStreamer::createGSTPlayBin() |
| 6 | + m_videoSink = gst_element_factory_make( "db410csink", "optimized vsink"); |
| 7 | + g_object_set(m_pipeline.get(), "video-sink", m_videoSink.get(), nullptr); |
| 8 | + #endif |
| 9 | ++ |
| 10 | ++#if PLATFORM(BCM_NEXUS) |
| 11 | ++ m_videoSink = gst_element_factory_make( "brcmvideosink", "brcmvideosink"); |
| 12 | ++ g_object_set(m_pipeline.get(), "video-sink", m_videoSink.get(), nullptr); |
| 13 | + |
| 14 | +-#if !USE(WESTEROS_SINK) && !USE(FUSION_SINK) |
| 15 | ++ GValue window_set = {0, }; |
| 16 | ++ static char str[40]; |
| 17 | ++ snprintf(str, 40, "%d,%d,%d,%d", 0,0, 1280, 720); |
| 18 | ++ |
| 19 | ++ g_value_init(&window_set, G_TYPE_STRING); |
| 20 | ++ g_value_set_static_string(&window_set, str); |
| 21 | ++ g_object_set(m_videoSink.get(), "window_set", str, nullptr); |
| 22 | ++ g_object_set(m_videoSink.get(), "zorder", 0, nullptr); |
| 23 | ++ |
| 24 | ++ GstElement* audioSink = gst_element_factory_make( "brcmaudiosink", "brcmaudiosink"); |
| 25 | ++ g_object_set(m_pipeline.get(), "audio-sink", audioSink, nullptr); |
| 26 | ++ |
| 27 | ++#endif |
| 28 | ++ |
| 29 | ++#if !USE(WESTEROS_SINK) && !USE(FUSION_SINK) && !PLATFORM(BCM_NEXUS) |
| 30 | ++ |
| 31 | + g_object_set(m_pipeline.get(), "audio-sink", createAudioSink(), nullptr); |
| 32 | + #endif |
| 33 | + configurePlaySink(); |
| 34 | + |
| 35 | ++#if !PLATFORM(BCM_NEXUS) |
| 36 | + // On 1.4.2 and newer we use the audio-filter property instead. |
| 37 | + // See https://bugzilla.gnome.org/show_bug.cgi?id=735748 for |
| 38 | + // the reason for using >= 1.4.2 instead of >= 1.4.0. |
| 39 | +@@ -2376,6 +2396,7 @@ void MediaPlayerPrivateGStreamer::createGSTPlayBin() |
| 40 | + else |
| 41 | + g_object_set(m_pipeline.get(), "audio-filter", scale, nullptr); |
| 42 | + } |
| 43 | ++#endif |
| 44 | + |
| 45 | + if (!m_renderingCanBeAccelerated) { |
| 46 | + // If not using accelerated compositing, let GStreamer handle |
0 commit comments