set_window_handle GTK on wayland

Nicolas Dufresne nicolas at ndufresne.ca
Fri Oct 23 15:46:16 UTC 2020


Le vendredi 23 octobre 2020 à 06:28 -0500, RiccardoCagnasso a écrit :
> How can I port a piece of code that uses Gst.Video.Overlay set_window_handle
> from x11 to wayland?
> 
> I found this example
> https://gist.github.com/jonasl/92c1ef32cfd87047e15f5ae24c6b510e but it seems
> to only work with glimagesink plus is not very minimal and not very clear in
> what he's doing and why.

You can find a GTK example here:

https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/blob/master/tests/examples/gl/gtk/gstgtk.c

Note that there is a reason why it often only works for glimagesink,
this sink is one of the rare sink that can do both X11 and Wayland.
Other sinks like xvimagesink or waylandsink are specific to the display
protocol you use.

> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list