WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 162606
Build fails for X11+EGL due to missing gst_gl_display_x11_new_with_display()
https://bugs.webkit.org/show_bug.cgi?id=162606
Summary
Build fails for X11+EGL due to missing gst_gl_display_x11_new_with_display()
Mario Sanchez Prada
Reported
2016-09-27 05:08:30 PDT
In MediaPlayerPrivateGStreamerBase::ensureGstGLContext() [1] a call to either gst_gl_display_x11_new_with_display() or gst_gl_display_egl_new_with_egl_display() is made depending on whether we're building for X11 or Wayland: [...] #if PLATFORM(X11) m_glDisplay = GST_GL_DISPLAY(gst_gl_display_x11_new_with_display(downcast<PlatformDisplayX11>(sharedDisplay).native())); #elif PLATFORM(WAYLAND) m_glDisplay = GST_GL_DISPLAY(gst_gl_display_egl_new_with_egl_display(downcast<PlatformDisplayWayland>(sharedDisplay).native())); #endif [...] However, this will fail when building for X11 with EGL (instead of GLX), since gst_gl_display_x11_new_with_display() is defined in /usr/include/gst/gl/x11/gstgldisplay_x11.h, which doesn't get included for EGL: [...] #include "GLContext.h" #if USE(GLX) #include "GLContextGLX.h" #include <gst/gl/x11/gstgldisplay_x11.h> #elif USE(EGL) #include "GLContextEGL.h" #include <gst/gl/egl/gstgldisplay_egl.h> #endif [...] I believe a simple fix is to change the condition there to check for GLX or EGL, instead of X11 or WAYLAND. [1]
https://svn.webkit.org/repository/webkit/trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
Attachments
Patch proposal
(2.74 KB, patch)
2016-09-27 05:22 PDT
,
Mario Sanchez Prada
gustavo
: review-
Details
Formatted Diff
Diff
Patch proposal
(2.71 KB, patch)
2016-09-27 05:42 PDT
,
Mario Sanchez Prada
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Mario Sanchez Prada
Comment 1
2016-09-27 05:22:06 PDT
Created
attachment 289935
[details]
Patch proposal This is the patch I'm using in my ARM + X11 environment. Please review, thanks!
Gustavo Noronha (kov)
Comment 2
2016-09-27 05:35:16 PDT
Comment on
attachment 289935
[details]
Patch proposal View in context:
https://bugs.webkit.org/attachment.cgi?id=289935&action=review
> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:260 > -#elif PLATFORM(WAYLAND) > - m_glDisplay = GST_GL_DISPLAY(gst_gl_display_egl_new_with_egl_display(downcast<PlatformDisplayWayland>(sharedDisplay).native())); > +#elif USE(EGL) > + m_glDisplay = GST_GL_DISPLAY(gst_gl_display_egl_new_with_egl_display(downcast<PlatformDisplayX11>(sharedDisplay).native()));
Now we're missing the Wayland case? I guess you should start with PLATFORM(WAYLAND) and elif USE(GLX), elif USE(EGL)?
Mario Sanchez Prada
Comment 3
2016-09-27 05:42:42 PDT
Created
attachment 289936
[details]
Patch proposal (In reply to
comment #2
)
> Comment on
attachment 289935
[details]
> Patch proposal > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=289935&action=review
> > > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:260 > > -#elif PLATFORM(WAYLAND) > > - m_glDisplay = GST_GL_DISPLAY(gst_gl_display_egl_new_with_egl_display(downcast<PlatformDisplayWayland>(sharedDisplay).native())); > > +#elif USE(EGL) > > + m_glDisplay = GST_GL_DISPLAY(gst_gl_display_egl_new_with_egl_display(downcast<PlatformDisplayX11>(sharedDisplay).native())); > > Now we're missing the Wayland case? I guess you should start with > PLATFORM(WAYLAND) and elif USE(GLX), elif USE(EGL)?
I'm an idiot. Forgot about the downcasting, see the new patch now
Gustavo Noronha (kov)
Comment 4
2016-09-27 05:45:36 PDT
Comment on
attachment 289936
[details]
Patch proposal \o/
WebKit Commit Bot
Comment 5
2016-09-27 06:22:36 PDT
Comment on
attachment 289936
[details]
Patch proposal Clearing flags on attachment: 289936 Committed
r206432
: <
http://trac.webkit.org/changeset/206432
>
WebKit Commit Bot
Comment 6
2016-09-27 06:22:40 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug