Similar idea was submitted by Vindex17 in PR #318.
Though libsdl2 is listed under audio outputs in configure script,
it actually handles both audio and video outputs. Thus video and sound
USE flags should be enabled for libsdl2. We also want X or wayland USE
flag enabled for libsdl2, so mpv can create a window to render in.
Package-Manager: portage-2.2.24
pulseaudio? ( media-sound/pulseaudio )
rubberband? ( >=media-libs/rubberband-1.8.0 )
samba? ( net-fs/samba )
- sdl? ( media-libs/libsdl2[threads] )
+ sdl? ( media-libs/libsdl2[sound,threads,video,X?,wayland?] )
v4l? ( media-libs/libv4l )
wayland? (
>=dev-libs/wayland-1.6.0
$(usex luajit '--lua=luajit' '')
# Audio outputs
- $(use_enable sdl sdl2) # SDL output is fallback for platforms where nothing better is available
+ $(use_enable sdl sdl2) # Listed under audio, but also includes video
--disable-sdl1
$(use_enable oss oss-audio)
--disable-rsound # Only available in overlays