OSDN Git Service

Clear local suspending flag when the BTA_AV_STOP_EVT event received
authorcheneyni <cheneyni@google.com>
Mon, 11 Jun 2018 13:19:26 +0000 (21:19 +0800)
committerPavlin Radoslavov <pavlin@google.com>
Fri, 15 Jun 2018 06:45:11 +0000 (06:45 +0000)
commite643d30249256461fd1c0a132b48c65e2eac18ba
tree75916aa1db5af3864d153d95db9611d396357eb9
parente0628146cbcc16b45ee00b016d68e4f201817100
Clear local suspending flag when the BTA_AV_STOP_EVT event received

The Stack would set the pending flag when received the Stop request but
did not clear it even state became Opened.  This would cuase Stack
replied Suspended immediately to Audio HAL but kept peer at Started
state and failed to handle Start request again.

This change clears the local suspending flag when BTA_AV_STOP_EVT
received and also reset all pending status when becomes Opened so it
will take effect only when Stack is changing state from Started.

Bug: 110022304
Test: Manual: (1) Play A2DP music and switch codec
              (2) Play A2DP music and change active device

Change-Id: I4b9aca33eb7eb6c40038e2082d23eb22e5830714
btif/src/btif_av.cc