OSDN Git Service

Add missing btif_a2dp_audio_interface_end_session() call during disconnect
authorPavlin Radoslavov <pavlin@google.com>
Mon, 25 Jun 2018 23:34:17 +0000 (16:34 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Tue, 26 Jun 2018 00:02:01 +0000 (17:02 -0700)
commitf40b85b46c873530f4e6c01c81be8e3b0ff486db
treeb14af8568aba5861037e5e2bc7612acff72e6f80
parent55faa9e9622b3eef6016cc798726155875e12b95
Add missing btif_a2dp_audio_interface_end_session() call during disconnect

Update the logic inside btif_a2dp_source_end_session_delayed() to make
sure that btif_a2dp_audio_interface_end_session() is called when device
is disconnected.

Also, update existing log messages to make it easier to identify similar
issues in the future.

Bug: 110176990
Test: Manual: Pair with two headsets, start/suspend/stop/switch active
      device
Change-Id: I248e5c3e2c4cf0ad820cef34ba859e9adc8dec8e
btif/src/btif_a2dp_source.cc