[Bug 767553] qmlglsink: Add Wayland support

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sun Jun 12 08:59:16 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=767553

--- Comment #5 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
(In reply to Haihua Hu from comment #4)
> (In reply to Sebastian Dröge (slomo) from comment #2)
> > Review of attachment 329631 [details] [review] [review]:
> > 
> > ::: ext/qt/qtitem.cc
> > @@ +33,3 @@
> >  #include <QtQuick/QQuickWindow>
> >  #include <QtQuick/QSGSimpleTextureNode>
> > +#include <QtGui/5.6.1/QtGui/qpa/qplatformnativeinterface.h>
> > 
> > This should work as #include <QtGui/gpa/...>. You will have to set up things
> > correctly in configure.ac for that
> > 
> 
> But I cannot found gpa folder in QtGui, it cannot work on my side. What
> should i set in configure.ac?

There should be a pkg-config file for this path, which seems to be
Qt5PlatformSupport.pc?

> > @@ +160,3 @@
> > +    QPlatformNativeInterface *native =
> > +              QGuiApplication::platformNativeInterface();
> > +    ret = (GstGLDisplayWayland *)g_object_new (GST_TYPE_GL_DISPLAY_WAYLAND,
> > NULL);
> > 
> > Why don't we have a gst_gl_display_wayland_new()? Might make sense to add :)
> > 
> 
> gst_gl_display_wayland_new() will use wl_display_connect to get wayland
> display. It is not correct on wayland for qt implement. 
> 
> > @@ +162,3 @@
> > +    ret = (GstGLDisplayWayland *)g_object_new (GST_TYPE_GL_DISPLAY_WAYLAND,
> > NULL);
> > +    ret->display = (struct wl_display *)
> > +              native->nativeResourceForWindow("display", NULL);
> > 
> > And that could take this in the constructor
> 
> It is just for qtsink, not compatible for other GL plugin


Isn't this the same as gst_gl_display_wayland_new_with_display(), as used by
gtkglsink for example?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list