Accepting request 64649 from home:tiwai:branches:multimedia:libs
ok OBS-URL: https://build.opensuse.org/request/show/64649 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/pulseaudio?expand=0&rev=66
This commit is contained in:
parent
af958cd1e7
commit
981d56c3d1
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 21 14:51:21 CET 2011 - tiwai@suse.de
|
||||
|
||||
- Fix handling of /etc/mplayer/mplayer.conf in setup-pulseaudio
|
||||
script (bnc#681113)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 17 17:54:45 CET 2011 - tiwai@suse.de
|
||||
|
||||
|
@ -28,6 +28,8 @@ check_root() {
|
||||
PROFNAME=/etc/profile.d/pulseaudio.sh
|
||||
CPROFNAME=/etc/profile.d/pulseaudio.csh
|
||||
|
||||
MPLAYER_CONF=/etc/mplayer/mplayer.conf
|
||||
|
||||
set_variable () {
|
||||
if test -f $PROFNAME &&
|
||||
grep -q "export $1"= $PROFNAME; then
|
||||
@ -79,11 +81,13 @@ enable_libao() {
|
||||
|
||||
enable_mplayer() {
|
||||
echo "Enabling PulseAudio for mplayer..."
|
||||
if test -f /etc/mplayer/mplayer.conf; then
|
||||
if grep -q '^ao=' /etc/mplayer/mplayer.conf; then
|
||||
perl -pi -e "s|^ao=.*|ao=pulse|g;" /etc/mplayer/mplayer.conf
|
||||
if test -f $MPLAYER_CONF; then
|
||||
if grep -q '^ao *= *pulse' $MPLAYER_CONF; then
|
||||
:
|
||||
elif grep -q '^ao *=' $MPLAYER_CONF; then
|
||||
sed -i -e 's/^ao *= *\(.*\)$/ao=pulse,\1/g' $MPLAYER_CONF
|
||||
else
|
||||
echo "ao=pulse" >> /etc/mplayer/mplayer.conf
|
||||
echo "ao=pulse" >> $MPLAYER_CONF
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -178,9 +182,10 @@ disable_libao() {
|
||||
}
|
||||
|
||||
disable_mplayer() {
|
||||
if test -f /etc/mplayer/mplayer.conf; then
|
||||
if test -f $MPLAYER_CONF; then
|
||||
echo "Disabling PulseAudio for mplayer..."
|
||||
perl -pi -e "s|ao=pulse||g;" /etc/mplayer/mplayer.conf
|
||||
sed -i -e 's/^ao *= *pulse,*/ao=/g' \
|
||||
-e 's/^ao *= *$/ao=alsa/g' $MPLAYER_CONF
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user