Created attachment 115381 [details] [review]
libva: wayland: Use a private queue and free registry proxy
both libva and the intel driver's wayland integration use the global queue. This is not thread safe and may be problematic for some applications. Also, it doesn't clear the proxies and queue correctly before unloading the libEGL.so, which leads to segfaults as libwayland-client tries to access the static wl_interface in the bit that has been unloaded!
Created attachment 115382 [details] [review]
intel-driver: Basically the same patch for the driver
The old version of wayland-client.h doesn't have wl_display_roundtrip_queue. Could you update the dependency on wayland in configure.ac too ?
Could you update your patch to check wayland version? otherwise your patch might break driver building.
Using vaapisink for video playback, trying to stop/start the video playback or switch video files.
SIGSEGV is caught in libwayland-client. Pulled in the patches w.r.t libva and libva-intel-driver. Still the issue exists.
Can you let me know, if anything needs to be changed the vaapi gstreamer plugin also in order to resolve the issue?
Someone also reported crash issue when using wayland, the issue disappears after upgrading wanyland-drm in the driver. Could you have a try with the following patches: