]> code.delx.au - pulseaudio/commitdiff
Do not reconfigure capabilities.
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Thu, 26 Mar 2009 18:38:40 +0000 (15:38 -0300)
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Thu, 26 Mar 2009 18:40:04 +0000 (15:40 -0300)
src/modules/bluetooth/module-bluetooth-device.c

index bcb65a4759e17cba99afba3e7b8aa09516f607bb..0a3c91a502db687d67bc7bc2cc5471b966c6641c 100644 (file)
@@ -462,6 +462,9 @@ static int setup_a2dp(struct userdata *u) {
         }
     }
 
+    if (cap->capability.configured)
+        return 0;
+
     if (u->sample_spec.channels <= 1) {
         if (cap->channel_mode & BT_A2DP_CHANNEL_MODE_MONO) {
             cap->channel_mode = BT_A2DP_CHANNEL_MODE_MONO;