Use waylandsink in Wayland sessions for GStreamer 1.16+#425
Use waylandsink in Wayland sessions for GStreamer 1.16+#425Integral-Tech wants to merge 3 commits intoFDH2:masterfrom
Conversation
|
Thanks, we will look into this. Does autovideosink fail to choose waylandsink when appropriate? |
|
@fduncanh Yes, XWayland is used by default in Wayland sessions. |
|
Has waylandsink been improving with time? Would it be appropriate to only make waylandsink the default choice if gstreamer version is sufficiently new? |
bd28e3b to
0d80c3a
Compare
Use waylandsink instead of xvimagesink/ximagesink in Wayland sessions for GStreamer 1.16+.
0d80c3a to
6381af2
Compare
|
@fduncanh Now |
does this mean the fix is not actually needed? If needed, this code below should be done in renderers/video_renderer.c (video_renderer_init) and renderers/x_display_fix.h |
@fduncanh No, I mean in my fix waylandsink is only selected for GStreamer 1.16+ on Wayland sessions. |
|
OK so the issue is with autovideosink on a system with X11 support that chooses xvimagesink or ximagesink when wayland is active, on gstreamer >= 1.16. XDG_SESSION_TYPE will only be set on a system with X11 so it can be tested for inside #ifdef X11_DISPLAY_FIX ... #endif where does the gstreamer > =1.16 come from? is this when gstreamer started to have waylandsink? |
|
This is really a gstreamer autovideosink issue, though... maybe there is a gstreamer fix? this would test for Wayland when x[v]imagesink is selected and issue a terminal message if wayland is being used. |
99017a7 to
e0a2097
Compare
7da91e4 to
9d28d27
Compare
a8ea903 to
738866a
Compare
d8ce1d8 to
a2592eb
Compare
Use waylandsink instead of xvimagesink/ximagesink in Wayland sessions.