summaryrefslogtreecommitdiff
path: root/audio.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-01-22 20:53:27 +0100
committerJohns <johns98@gmx.net>2012-01-22 20:53:27 +0100
commit0fad02285dd983bd22fb9795698e4c3c88d21038 (patch)
treebbe82e984bed1baae54606888d3553f35c05e9a1 /audio.c
parent95462331757b001e45b4e5c9f9d31c0e63c0f2db (diff)
downloadvdr-plugin-softhddevice-0fad02285dd983bd22fb9795698e4c3c88d21038.tar.gz
vdr-plugin-softhddevice-0fad02285dd983bd22fb9795698e4c3c88d21038.tar.bz2
AC3 device should be called 'ALSA_AC3_DEVICE'.
Diffstat (limited to 'audio.c')
-rw-r--r--audio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio.c b/audio.c
index a9f4251..0b12610 100644
--- a/audio.c
+++ b/audio.c
@@ -708,6 +708,7 @@ static snd_pcm_t *AlsaOpenPCM(int use_ac3)
// &&|| hell
if (!(use_ac3 && ((device = AudioAC3Device)
+ || (device = getenv("ALSA_AC3_DEVICE"))
|| (device = getenv("ALSA_PASSTHROUGH_DEVICE"))))
&& !(device = AudioPCMDevice) && !(device = getenv("ALSA_DEVICE"))) {
device = "default";