aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-07-21 07:04:28 +0000
committerEric Wong <normalperson@yhbt.net>2006-07-21 07:04:28 +0000
commit74c4f5364df84f7fe7a944a4f690a11766e90f6f (patch)
tree59ee17735a695c9df2b6ec78dbae3064904daa19 /src
parent160dbe080c50e88ed113d0b194151068706b57f4 (diff)
downloadmpd-74c4f5364df84f7fe7a944a4f690a11766e90f6f.tar.gz
mpd-74c4f5364df84f7fe7a944a4f690a11766e90f6f.tar.xz
mpd-74c4f5364df84f7fe7a944a4f690a11766e90f6f.zip
audioOutput_alsa: oops, I broke autodetection in r4363, fixed
git-svn-id: https://svn.musicpd.org/mpd/trunk@4416 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_alsa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audioOutputs/audioOutput_alsa.c b/src/audioOutputs/audioOutput_alsa.c
index 786198b0b..2caee99e8 100644
--- a/src/audioOutputs/audioOutput_alsa.c
+++ b/src/audioOutputs/audioOutput_alsa.c
@@ -92,7 +92,8 @@ static int alsa_initDriver(AudioOutput * audioOutput, ConfigParam * param)
ad->buffer_time = atoi(bp->value);
if ((bp = getBlockParam(param, "period_time")))
ad->period_time = atoi(bp->value);
- }
+ } else
+ ad->device = strdup("default");
audioOutput->data = ad;
return 0;