set_window_handle GTK on wayland

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

set_window_handle GTK on wayland

RiccardoCagnasso
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.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: set_window_handle GTK on wayland

Nicolas Dufresne-5
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel