--- src/output/openal_plugin.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/output/openal_plugin.c b/src/output/openal_plugin.c
index 2d581eb..e60e378 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;
}
--
1.6.3.2
pgpB4MTIOYJEU.pgp
Description: PGP signature
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ Musicpd-dev-team mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team
