Merge branch 'bugfix/btdm_assert_deinit_a2dp_while_playing' into 'master'

components/bt: Fix assert when deinit A2DP while playing music

Closes BT-471

See merge request espressif/esp-idf!6533
pull/4345/head
Jiang Jiang Jian 2019-11-01 11:57:01 +08:00
commit fd4da421e5
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -747,6 +747,8 @@ static void btc_a2dp_sink_thread_cleanup(UNUSED_ATTR void *context)
fixed_queue_free(a2dp_sink_local_param.btc_aa_snk_cb.RxSbcQ, osi_free_func);
a2dp_sink_local_param.btc_aa_snk_cb.RxSbcQ = NULL;
future_ready(a2dp_sink_local_param.btc_a2dp_sink_future, NULL);
}

Wyświetl plik

@ -1615,6 +1615,8 @@ static void btc_a2dp_source_thread_cleanup(UNUSED_ATTR void *context)
fixed_queue_free(a2dp_source_local_param.btc_aa_src_cb.TxAaQ, osi_free_func);
a2dp_source_local_param.btc_aa_src_cb.TxAaQ = NULL;
future_ready(a2dp_source_local_param.btc_a2dp_source_future, NULL);
}