Re: Using VLC 4.0.0 on WSL2 Ubuntu 25.04 with wayland

Rémi Denis-Courmont <[email protected]> Sun, 22 Jun 2025 09:49:38 +0200
Newsgroups gmane.comp.video.videolan.vlc.devel
Message-ID <[email protected]>

Le 19 juin 2025 15:03:43 GMT+02:00, Jean-Yves Baudy <[email protected]> a écrit :
>Hi,
>When I want to play a video with VLC 4.0.0 on WSL2 Ubuntu 25.04 with
>wayland (compiled from the main branch) I have this error and VLC stop
>working (exit):
>
>   - wp_viewporter#22: error 0: a viewport for that surface already exists
>
>
>If I comment the code here:
>
>   - <     if (sys->viewporter != NULL)
>   <         sys->viewport = wp_viewporter_get_viewport(sys->viewporter,
>   surface);
>   ---
>   >     if (sys->viewporter != NULL) {
>   >         //sys->viewport = wp_viewporter_get_viewport(sys->viewporter,
>   surface);
>   >     }
>
>It works. I have no idea why.

That's going to break normal use of SHM and is not a usable patch.

This is ostensibly a bug in the window provider you're using, it's not respecting the conventions for the Wayland surface type, causing valid display plugins to crash.
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
https://mailman.videolan.org/listinfo/vlc-devel