-
Notifications
You must be signed in to change notification settings - Fork 122
Use waylandsink in Wayland sessions for GStreamer 1.16+ #425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Use waylandsink in Wayland sessions for GStreamer 1.16+ #425
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
d61c5a2 to
1faa495
Compare
a78f870 to
9e3887a
Compare
1ed1944 to
382b782
Compare
8c4cdbd to
6d6b080
Compare
Use waylandsink instead of xvimagesink/ximagesink in Wayland sessions.