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 02:58:25 +0000 (19:58 -0700)
commit1b8eefe23d91f61acd788071d9aafe4956fb61a4
treebfd223fb299213e0eb61854587b1ac502d132cf7
parent22f8446614341cadb975a6d762c695294c58ffd1
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
Merged-In: I248e5c3e2c4cf0ad820cef34ba859e9adc8dec8e
(cherry picked from commit f40b85b46c873530f4e6c01c81be8e3b0ff486db)
btif/src/btif_a2dp_source.cc