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

Commit 1a198c6b authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Support for A2DP Sink - Follow-up fix

Update the code so it matches the corresponding code in the internal tree.

Change-Id: I7cb143cde31e2cfca54b2172737cf262ae478186
parent ebbb2251
Loading
Loading
Loading
Loading
+9 −12
Original line number Diff line number Diff line
@@ -1957,7 +1957,7 @@ static void handle_rc_metamsg_rsp(tBTA_AV_META_MSG *pmeta_msg)
**
** Description      iterator callback function to match the event and handle
**                  timer cleanup
** Returns          true if matches with the event, flase to stop
** Returns          true to continue iterating, false to stop
**
***************************************************************************/
bool iterate_supported_event_list_for_interim_rsp(void *data, void *cb_data)
@@ -1970,10 +1970,10 @@ bool iterate_supported_event_list_for_interim_rsp(void *data, void *cb_data)
    if (p_event->event_id == *p_event_id)
    {
        p_event->status = eINTERIM;
        return true;
    }
        return false;
    }
    return true;
}

/***************************************************************************
**
@@ -1990,20 +1990,17 @@ bool iterate_supported_event_list_for_interim_rsp(void *data, void *cb_data)
bool iterate_supported_event_list_for_timeout(void *data, void *cb_data)
{
    UINT8 label;
    UINT32 cb_value;
    btif_rc_supported_event_t *p_event = (btif_rc_supported_event_t *)data;

    cb_value = (UINT32)cb_data;

    label = cb_value & 0xFF;
    label = (*(UINT8*)cb_data) & 0xFF;

    if (p_event->label == label)
    {
        list_remove(btif_rc_cb.rc_supported_event_list, p_event);
        return true;
    }
        return false;
    }
    return true;
}

/***************************************************************************
**