conf: added config_get_block_string()

This replaces lots of getBlockParam() invocations.
This commit is contained in:
Max Kellermann
2009-01-18 19:37:27 +01:00
parent 73e466cfef
commit a531a1e650
11 changed files with 95 additions and 98 deletions
+1 -2
View File
@@ -92,8 +92,7 @@ alsa_configure(AlsaData *ad, struct config_param *param)
{
struct block_param *bp;
if ((bp = getBlockParam(param, "device")))
ad->device = g_strdup(bp->value);
ad->device = config_dup_block_string(param, "device", NULL);
ad->useMmap = config_get_block_bool(param, "use_mmap", false);