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

Commit 65066c67 authored by Sandeep Samdaria's avatar Sandeep Samdaria Committed by Automerger Merge Worker
Browse files

Merge "Address media button session being changed" am: 75e0b4cd

parents 027a4b90 75e0b4cd
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -682,9 +682,12 @@ uint8_t btif_a2dp_sink_enqueue_buf(BT_HDR* p_pkt) {
  fixed_queue_enqueue(btif_a2dp_sink_cb.rx_audio_queue, p_msg);
  if (fixed_queue_length(btif_a2dp_sink_cb.rx_audio_queue) ==
      MAX_A2DP_DELAYED_START_FRAME_COUNT) {
    BTIF_TRACE_DEBUG("%s: Initiate decoding", __func__);
    BTIF_TRACE_DEBUG("%s: Initiate decoding. Current focus state:%d", __func__,
                     btif_a2dp_sink_cb.rx_focus_state);
    if (btif_a2dp_sink_cb.rx_focus_state == BTIF_A2DP_SINK_FOCUS_GRANTED) {
      btif_a2dp_sink_audio_handle_start_decoding();
    }
  }

  return fixed_queue_length(btif_a2dp_sink_cb.rx_audio_queue);
}