aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/oss_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/oss_plugin.c')
-rw-r--r--src/output/oss_plugin.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/output/oss_plugin.c b/src/output/oss_plugin.c
index b27aa1b77..b80024b29 100644
--- a/src/output/oss_plugin.c
+++ b/src/output/oss_plugin.c
@@ -392,16 +392,14 @@ oss_initDriver(G_GNUC_UNUSED struct audio_output *audioOutput,
G_GNUC_UNUSED const struct audio_format *audio_format,
const struct config_param *param)
{
- if (param) {
- const char *device =
- config_get_block_string(param, "device", NULL);
- if (device != NULL) {
- OssData *od = newOssData();
- od->device = device;
- mixer_configure(&od->mixer, param);
- return od;
- }
+ const char *device = config_get_block_string(param, "device", NULL);
+ if (device != NULL) {
+ OssData *od = newOssData();
+ od->device = device;
+ mixer_configure(&od->mixer, param);
+ return od;
}
+
return oss_open_default(param);
}