Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d6aeca6 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Fix problem with A2DP initialization due to merge error

btif_av_init() would fail when called a second time due to
erroneous nulling of btif_av_cb.sm_handle

Bug: 16014877
Change-Id: I7e6b213759e93372ac8ecaadc2b81452572f3f7d
parent d0ecdbb8
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -892,8 +892,6 @@ static void bte_av_media_callback(tBTA_AV_EVT event, tBTA_AV_MEDIA *p_data)

bt_status_t btif_av_init()
{
    btif_av_cb.sm_handle = NULL;

    if (btif_av_cb.sm_handle == NULL)
    {
        if (btif_a2dp_start_media_task() != GKI_SUCCESS)