[pulseaudio-discuss] Add a single "On" profile to coreaudio devices. Fixes crash on OS X.

Sjors Gielen pulseaudio at sjorsgielen.nl
Sat Jul 7 06:54:38 PDT 2012


Op 07-07-12 15:22, Sjors Gielen schreef:
> Hi all,
> 
> Since commit 12af302a last month, cards always have at least one
> profile, so there is also always an active_profile (this makes the code
> more simple). However, module-coreaudio-device did not create a profile
> yet, causing a crash of PulseAudio when used on OS X. This patch fixes
> this crash, by adding a single "On" profile. I've also added a TODO for
> adding an "Off" profile which removes all sinks and sources -- I can
> work on resolving this TODO later on.

There is another remaining issue on OS X: the build process always tries
to install files into /lib/udev/rules.d, even when udev is disabled.
However, as /lib does not exist on OS X, the install step fails, unless
you explicitly set the udev rules directory to something else.

I've looked through the autoconf/automake files, but couldn't figure out
how to disable the installation of the rules files when udev is
disabled. Does anyone know how to do this? Until then, the workaround is
"--with-udev-rules-dir=/tmp/udev/rules.d".

Sjors


More information about the pulseaudio-discuss mailing list