diff options
Diffstat (limited to 'WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp')
-rw-r--r-- | WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp b/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp index 8f6c9e0..d619e14 100644 --- a/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp +++ b/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp @@ -34,6 +34,7 @@ #include "Frame.h" #include "FrameView.h" #include "GOwnPtrGStreamer.h" +#include "GStreamerGWorld.h" #include "GraphicsContext.h" #include "GraphicsTypes.h" #include "ImageGStreamer.h" @@ -1348,6 +1349,15 @@ bool MediaPlayerPrivateGStreamer::supportsFullscreen() const return true; } + +PlatformMedia MediaPlayerPrivateGStreamer::platformMedia() const +{ + PlatformMedia p; + p.type = PlatformMedia::GStreamerGWorldType; + p.media.gstreamerGWorld = m_gstGWorld.get(); + return p; +} + void MediaPlayerPrivateGStreamer::setPreload(MediaPlayer::Preload preload) { ASSERT(m_playBin); @@ -1372,6 +1382,8 @@ void MediaPlayerPrivateGStreamer::createGSTPlayBin() ASSERT(!m_playBin); m_playBin = gst_element_factory_make("playbin2", "play"); + m_gstGWorld = GStreamerGWorld::createGWorld(this); + GstBus* bus = gst_pipeline_get_bus(GST_PIPELINE(m_playBin)); gst_bus_add_signal_watch(bus); g_signal_connect(bus, "message", G_CALLBACK(mediaPlayerPrivateMessageCallback), this); |