Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 394249 - media-video/vlc-1.1.2 uses system pulseaudio with USE="-pulseaudio"
Summary: media-video/vlc-1.1.2 uses system pulseaudio with USE="-pulseaudio"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-10 15:03 UTC by Jaakko Perttilä
Modified: 2011-12-17 13:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
equery files vlc (vlc-1.1.12.files.txt.gz,4.13 KB, application/x-gzip)
2011-12-10 23:15 UTC, Jaakko Perttilä
Details
build log media-video/vlc-1.1.2 (vlc-1.1.12:20111210-221931.log.gz,117.22 KB, application/x-gzip)
2011-12-10 23:19 UTC, Jaakko Perttilä
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaakko Perttilä 2011-12-10 15:03:53 UTC
I let gnome3 install pulseaudio. After that I updated vlc. vlc has USE="-pulseaudio". vlc is configured to use alsa.

Now, when playing audio with vlc, /usr/lib/vlc/plugins/audio_output/libpulse_plugin.so is initialized. That starts /usr/bin/pulseaudio, which grabs the soundcard. After that, vlc tries to start alsaplugin which fails because of the pulseaudio grabbing the audio device.


Reproducible: Always

Steps to Reproduce:
1. emerge media-sound/pulseaudio
2. emerge USE="-pulseaudio" media-video/vlc
3. vlc -vv dvd.iso

Actual Results:  
no sound
[0x8507a24] main audio output debug: looking for audio output module: 5 candidates
[0x8507a24] alsa audio output warning: audio device: hw:0,0 is already in use
[0x8507a24] alsa audio output warning: audio device: hw:0,0 is already in use
[0x8507a24] alsa audio output debug: failed to find a usable ALSA configuration

[0x8507a24] pulse audio output debug: using stereo channel map
[0x8507a24] pulse audio output debug: connected to device auto_null (0)
[0x8507a24] pulse audio output debug: using buffer metrics: maxlength=4194304, tlength=15552, prebuf=0, minreq=7680
[0x8507a24] main audio output debug: using audio output module "pulse"

I haven't configured pulseaudio at all, and it doesn't seem to work now.
[0x8507a24] pulse audio output debug: deferring start (110559 us)
[0x8507a24] pulse audio output debug: starting deferred
[0x8507a24] pulse audio output debug: started
[0x84c76b4] main generic debug: auto hidding mouse
[0x8507a24] pulse audio output warning: too early by 40487 us
[0x8507a24] pulse audio output debug: changed sample rate to 47954 Hz
the last warning and debug messages continue with changing values, still no sound.

Expected Results:  
Sound is played through alsa.

media-video/vlc:0::gentoo 1.1.12
USE="X a52 aac -aalib alsa (-altivec) -atmo -avahi bidi cdda -cddb dbus -dc1394 -debug -dirac -directfb dts dvb dvd -fbcon ffmpeg flac -fluidsynth -fontconfig gcrypt -ggi -gme gnome -gnutls httpd -id3tag -ieee1394 jack -kate kde libass libcaca libnotify -libproxy -libtiger -libv4l libv4l2 -lirc live -lua matroska mmx -modplug mp3 mpeg -mtp musepack ncurses nsplugin ogg opengl -optimisememory -oss png -projectm -pulseaudio -pvr qt4 -remoteosd rtsp -run-as-root samba schroedinger sdl -sdl-image -shine shout -skins speex -sqlite sse stream svg -svga -taglib theora truetype -twolame udev -upnp v4l vaapi -vcdx vlm vorbis win32codecs -wma-fixed x264 xcb xml -xosd xv -zvbi"

vlc -vv
[0x804c8fc] main libvlc debug: configured with ./configure  '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--enable-a52' '--disable-aa' '--enable-faad' '--enable-alsa' '--disable-altivec' '--disable-asademux' '--disable-atmo' '--disable-bonjour' '--enable-fribidi' '--enable-vcd' '--disable-libcddb' '--enable-dbus' '--enable-dbus-control' '--disable-dirac' '--disable-directfb' '--disable-dc1394' '--disable-debug' '--enable-dca' '--enable-dvb' '--enable-dvdread' '--enable-dvdnav' '--disable-fb' '--enable-avformat' '--enable-swscale' '--enable-postproc' '--enable-flac' '--disable-fluidsynth' '--disable-fontconfig' '--disable-ggi' '--disable-gme' '--enable-gnomevfs' '--disable-gnutls' '--enable-httpd' '--disable-id3tag' '--disable-dv' '--enable-jack' '--disable-kate' '--with-kde-solid' '--enable-libass' '--enable-caca' '--enable-libgcrypt' '--enable-notify' '--disable-libproxy' '--disable-libtar' '--disable-tiger' '--disable-libv4l' '--enable-libv4l2' '--disable-lirc' '--enable-live555' '--disable-lua' '--enable-mkv' '--enable-mmx' '--disable-mod' '--enable-mad' '--enable-libmpeg2' '--disable-mtp' '--enable-mpc' '--enable-ncurses' '--enable-mozilla' '--with-mozilla-pkg=libxul' '--enable-ogg' '--enable-glx' '--enable-opengl' '--disable-optimize-memory' '--disable-oss' '--enable-png' '--disable-portaudio' '--disable-projectm' '--disable-pulse' '--disable-pvr' '--enable-qt4' '--disable-remoteosd' '--enable-realrtsp' '--disable-run-as-root' '--enable-smb' '--enable-schroedinger' '--enable-sdl' '--disable-sdl-image' '--disable-shine' '--enable-shout' '--disable-skins2' '--enable-speex' '--disable-sqlite' '--enable-sse' '--enable-svg' '--disable-svgalib' '--disable-taglib' '--enable-theora' '--enable-freetype' '--disable-twolame' '--enable-udev' '--disable-upnp' '--disable-v4l' '--enable-v4l2' '--disable-vcdx' '--enable-libva' '--enable-vlm' '--enable-vorbis' '--enable-loader' '--disable-wma-fixed' '--enable-x264' '--enable-libxml2' '--disable-xosd' '--enable-xvideo' '--disable-zvbi' '--enable-telx' '--disable-snapshot' '--disable-growl' '--disable-optimizations' '--enable-fast-install' '--enable-sout' '--enable-avcodec' '--enable-xcb' '--with-x' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=pentium-m -O3 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now -Wl,--hash-style=gnu' 'CPPFLAGS=' 'CXXFLAGS=-march=pentium-m -O3 -pipe'
Comment 1 Rafał Mużyło 2011-12-10 17:02:16 UTC
That's - to a point - the correct behavior.

See bug 392341 for more details.
Comment 2 Alexis Ballier gentoo-dev 2011-12-10 17:50:57 UTC
/usr/lib/vlc/plugins/audio_output/libpulse_plugin.so shouldnt be present with use=-pulseaudio

please attach vlc's build log and the output of 'equery files vlc'
Comment 3 Jaakko Perttilä 2011-12-10 23:15:07 UTC
Created attachment 295421 [details]
equery files vlc
Comment 4 Jaakko Perttilä 2011-12-10 23:19:49 UTC
Created attachment 295423 [details]
build log media-video/vlc-1.1.2

configure has --disable-pulse
but it finds the system pulse: checking for PULSE... yes
and thus enabled modules includes the pulse.
Comment 5 Alexis Ballier gentoo-dev 2011-12-17 13:24:49 UTC
(In reply to comment #4)
> Created attachment 295423 [details]
> build log media-video/vlc-1.1.2
> 
> configure has --disable-pulse
> but it finds the system pulse: checking for PULSE... yes
> and thus enabled modules includes the pulse.

thx, should be fixed in 1.1.12-r2 now