aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/openal_plugin.c
diff options
context:
space:
mode:
authorSerge Ziryukin <ftrvxmtrx@gmail.com>2009-09-06 22:33:34 +0300
committerMax Kellermann <max@duempel.org>2009-09-06 22:22:17 +0200
commiteefef369ea116c1d465f0452283b2b750a881f4d (patch)
tree6afbf40f1bb37f33cd47ca35cdc5df98a5f866cb /src/output/openal_plugin.c
parent4ebf53ffdfcba05c313e8d7b3cde125c2d64af8a (diff)
downloadmpd-eefef369ea116c1d465f0452283b2b750a881f4d.tar.gz
mpd-eefef369ea116c1d465f0452283b2b750a881f4d.tar.xz
mpd-eefef369ea116c1d465f0452283b2b750a881f4d.zip
output/openal: fix default device name
Diffstat (limited to 'src/output/openal_plugin.c')
-rw-r--r--src/output/openal_plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output/openal_plugin.c b/src/output/openal_plugin.c
index 2d581ebbf..e60e378d1 100644
--- a/src/output/openal_plugin.c
+++ b/src/output/openal_plugin.c
@@ -123,13 +123,13 @@ openal_init(G_GNUC_UNUSED const struct audio_format *audio_format,
const char *device_name = config_get_block_string(param, "device", NULL);
struct openal_data *od;
- od = g_new(struct openal_data, 1);
- od->device_name = device_name;
-
if (device_name == NULL) {
device_name = alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);
}
+ od = g_new(struct openal_data, 1);
+ od->device_name = device_name;
+
return od;
}