Change MIN/MAX to PA_MIN/PA_MAX
authorJoão Paulo Rechi Vita <joao.vita@gmail.com>
Thu, 21 Aug 2008 20:36:17 +0000 (17:36 -0300)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Sep 2008 22:12:08 +0000 (01:12 +0300)
src/modules/module-bt-device.c

index ee78350..ee094e7 100644 (file)
@@ -323,8 +323,8 @@ static int bt_a2dp_init(struct userdata *u) {
 //    if (cfg->has_bitpool)
 //        min_bitpool = max_bitpool = cfg->bitpool;
 //    else {
-    min_bitpool = MAX(MIN_BITPOOL, cap->min_bitpool);
-    max_bitpool = MIN(default_bitpool(cap->frequency, cap->channel_mode), cap->max_bitpool);
+    min_bitpool = PA_MAX(MIN_BITPOOL, cap->min_bitpool);
+    max_bitpool = PA_MIN(default_bitpool(cap->frequency, cap->channel_mode), cap->max_bitpool);
 //    }
 
     cap->min_bitpool = min_bitpool;