SDL plugin fails to initialize
Hi. I am trying to play udp stream via SDL sink but if fails to initialize.
I am on archlinux and using hyperland(wayland) which may be the cause of problem.
I have attached error and pipeline.
6 Replies
Hello @Damirados ! It seems that
SDL_init()
in the native part of the membane_sdl_plugin
code fails. It indeed looks as something related to wayland - could you try setting SDL_VIDEODRIVER=wayland
environmental variable and rerun your script?Still the same. Is there a way I could get more verbose output from SDL side? Is there a way to use system SDL instead of precompiled one?
Sure, you can turn off precompiled dependency with the use of the following configuration:
config :bundlex, disable_precompiled_os_deps: [:membrane_sdl_plugin]
(bundlex will then look for the SDL2 with pkg-config
).
Concerning more verbose logging, I don't think it is currently possible without C code manipulation in the implementation of the sdl_plugin's native partI got it working by disabling precompiled os deps and changing bundlex config in membrane_sdl_plugin
GitHub
Fix pkg_config sdl2 string by Damirados · Pull Request #36 · membra...
Needed to make this change for it to compile after disabling precompiled dependency.