Changeset 206859 in webkit


Ignore:
Timestamp:
Oct 6, 2016 3:22:59 AM (8 years ago)
Author:
mario@webkit.org
Message:

[GStreamer] Can't play any video with GSTREAMER_GL enabled
https://bugs.webkit.org/show_bug.cgi?id=162669

Reviewed by Philippe Normand.

Make sure an EGLDisplay type is passed when creating the GstGlDisplay
for the EGL code path, instead of a native X11 display type, so
that we get a valid GstGlDisplay as a result, not a dummy one.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:

(WebCore::MediaPlayerPrivateGStreamerBase::ensureGstGLContext):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r206858 r206859  
     12016-10-06  Mario Sanchez Prada  <mario@endlessm.com>
     2
     3        [GStreamer] Can't play any video with GSTREAMER_GL enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=162669
     5
     6        Reviewed by Philippe Normand.
     7
     8        Make sure an EGLDisplay type is passed when creating the GstGlDisplay
     9        for the EGL code path, instead of a native X11 display type, so
     10        that we get a valid GstGlDisplay as a result, not a dummy one.
     11
     12        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
     13        (WebCore::MediaPlayerPrivateGStreamerBase::ensureGstGLContext):
     14
    1152016-10-06  Youenn Fablet  <youenn@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp

    r206446 r206859  
    263263#elif USE(EGL)
    264264        if (is<PlatformDisplayX11>(sharedDisplay))
    265             m_glDisplay = GST_GL_DISPLAY(gst_gl_display_egl_new_with_egl_display(downcast<PlatformDisplayX11>(sharedDisplay).native()));
     265            m_glDisplay = GST_GL_DISPLAY(gst_gl_display_egl_new_with_egl_display(downcast<PlatformDisplayX11>(sharedDisplay).eglDisplay()));
    266266#endif
    267267#endif
     
    269269#if PLATFORM(WAYLAND)
    270270        if (is<PlatformDisplayWayland>(sharedDisplay))
    271             m_glDisplay = GST_GL_DISPLAY(gst_gl_display_egl_new_with_egl_display(downcast<PlatformDisplayWayland>(sharedDisplay).native()));
     271            m_glDisplay = GST_GL_DISPLAY(gst_gl_display_egl_new_with_egl_display(downcast<PlatformDisplayWayland>(sharedDisplay).eglDisplay()));
    272272#endif
    273273
Note: See TracChangeset for help on using the changeset viewer.