diff options
Diffstat (limited to 'src/output/oss_plugin.c')
-rw-r--r-- | src/output/oss_plugin.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/output/oss_plugin.c b/src/output/oss_plugin.c index f66280752..e83a05c5a 100644 --- a/src/output/oss_plugin.c +++ b/src/output/oss_plugin.c @@ -393,10 +393,11 @@ oss_initDriver(G_GNUC_UNUSED struct audio_output *audioOutput, struct config_param *param) { if (param) { - struct block_param *bp = getBlockParam(param, "device"); - if (bp) { + const char *device = + config_get_block_string(param, "device", NULL); + if (device != NULL) { OssData *od = newOssData(); - od->device = bp->value; + od->device = device; mixer_configure(&od->mixer, param); return od; } |