Accepting request 65013 from multimedia:libs
Accepted submit request 65013 from user licensedigger OBS-URL: https://build.opensuse.org/request/show/65013 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pulseaudio?expand=0&rev=74
This commit is contained in:
commit
0f15f1010c
@ -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
|
Thu Feb 17 17:54:45 CET 2011 - tiwai@suse.de
|
||||||
|
|
||||||
|
@ -28,6 +28,8 @@ check_root() {
|
|||||||
PROFNAME=/etc/profile.d/pulseaudio.sh
|
PROFNAME=/etc/profile.d/pulseaudio.sh
|
||||||
CPROFNAME=/etc/profile.d/pulseaudio.csh
|
CPROFNAME=/etc/profile.d/pulseaudio.csh
|
||||||
|
|
||||||
|
MPLAYER_CONF=/etc/mplayer/mplayer.conf
|
||||||
|
|
||||||
set_variable () {
|
set_variable () {
|
||||||
if test -f $PROFNAME &&
|
if test -f $PROFNAME &&
|
||||||
grep -q "export $1"= $PROFNAME; then
|
grep -q "export $1"= $PROFNAME; then
|
||||||
@ -79,11 +81,13 @@ enable_libao() {
|
|||||||
|
|
||||||
enable_mplayer() {
|
enable_mplayer() {
|
||||||
echo "Enabling PulseAudio for mplayer..."
|
echo "Enabling PulseAudio for mplayer..."
|
||||||
if test -f /etc/mplayer/mplayer.conf; then
|
if test -f $MPLAYER_CONF; then
|
||||||
if grep -q '^ao=' /etc/mplayer/mplayer.conf; then
|
if grep -q '^ao *= *pulse' $MPLAYER_CONF; then
|
||||||
perl -pi -e "s|^ao=.*|ao=pulse|g;" /etc/mplayer/mplayer.conf
|
:
|
||||||
|
elif grep -q '^ao *=' $MPLAYER_CONF; then
|
||||||
|
sed -i -e 's/^ao *= *\(.*\)$/ao=pulse,\1/g' $MPLAYER_CONF
|
||||||
else
|
else
|
||||||
echo "ao=pulse" >> /etc/mplayer/mplayer.conf
|
echo "ao=pulse" >> $MPLAYER_CONF
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -178,9 +182,10 @@ disable_libao() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
disable_mplayer() {
|
disable_mplayer() {
|
||||||
if test -f /etc/mplayer/mplayer.conf; then
|
if test -f $MPLAYER_CONF; then
|
||||||
echo "Disabling PulseAudio for mplayer..."
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user