GstVideoOverlay, Gtk3 and Wayland
Emmanuel Pacaud
emmanuel.pacaud at lapp.in2p3.fr
Mon Sep 19 15:20:15 UTC 2016
Hi,
Le sam. 20 août 2016 à 0:51, Olivier Crête
<olivier.crete at collabora.com> a écrit :
> On Fri, 2016-08-12 at 15:02 +0000, Jan Alexander Steffens wrote:
>> On Fri, Aug 12, 2016 at 4:24 PM Emmanuel Pacaud
>> <emmanuel.pacaud at lapp.in2p3.fr> wrote:
>>> When this application runs in a X11 session, everything works fine,
>>> like on the attached screenshot. But in a wayland session, the
>>> video is
>>> displayed in a separate window, instead of being embedded in the
>>> main
>>> application window.
>>>
>>> My code is based on what is in the GstOverlayElement documentation,
>>> in
>>> the GstVideOverlay and Gtk+ paragraph, which obviously doesn't
>>> handle
>>> the wayland case. How are we supposed to proceed in this case ?
>
> The other portable way is to use gtkglsink which has a property that
> gives you a widget. Or you can use gtksink if you want
> non-accelerated rendering (which will be a lot more CPU intensive).
> This should work on both X and Wayland clients.
Thanks Olivier. I have ported my viewer to use gtk(gl)sink and it works
perfectly now. I had a position issue when the gtksink widget was added
to a GtkStack with interpolate-size property set to TRUE. Setting it to
FALSE solved my issue. More details here:
https://bugzilla.gnome.org/show_bug.cgi?id=771427
Cheers,
Emmanuel.
More information about the gstreamer-devel
mailing list