Debug the headset connected type for working AVRCP Control 16/66716/1 accepted/tizen/common/20160421.161612 accepted/tizen/ivi/20160422.065610 accepted/tizen/mobile/20160422.065658 accepted/tizen/tv/20160422.065622 accepted/tizen/wearable/20160422.065550 submit/tizen/20160421.042032
authorHyuk Lee <hyuk0512.lee@samsung.com>
Wed, 20 Apr 2016 11:50:45 +0000 (20:50 +0900)
committerHyuk Lee <hyuk0512.lee@samsung.com>
Wed, 20 Apr 2016 11:50:45 +0000 (20:50 +0900)
Change-Id: I8f006a137d5e28ff70ff9f3760f69948eb821b0f
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
bt-service/bt-service-audio.c

index 599dd03..a16679a 100755 (executable)
@@ -464,7 +464,7 @@ void _bt_add_headset_to_list(int type, int status, const char *address)
        }
 
        connected_device->device_state = status;
-       if (status == BT_STATE_CONNECTED)
+       if ((status == BT_STATE_CONNECTED) || (status == BT_STATE_CONNECTING))
                connected_device->type |= type;
        g_strlcpy(connected_device->device_address, address,
                        sizeof(connected_device->device_address));