Video player not working/crashing on wayland.
Original issue: https://github.com/maxrd2/SubtitleComposer/issues/144
The crash happens due to gstreamer (xvimagesink) code calling XGetWindowAttributes() on bad window handle. libX11 by default calls exit() even if its some trivial error.
- current gstreamer plugin using any of the "autovideosink glimagesink xvimagesink ximagesink" video outputs can't work on wayland
- there is gstreamer "waylandsink".. that one causes QtWayland to crash, have managed to patch Qt not to crash and video/audio plays but video is unable to resize so it covers random part of subtitlecomposer window
- there are "qtglvideosink" and "qtvideosink" that might work on wayland but was unable to make them work using gstreamer api directly - gstreamer plugin should be rewritten using QtGstreamer and I won't do that anytime soon
- have updated MPV player plugin to use new libmpv render api (1.29+) which works on wayland - that one works