component/bt: bugfix for A2DP in dropping of media packet when data buffer size goes beyond threshold

pull/348/merge
wangmengyang 2017-05-24 15:08:46 +08:00
rodzic ba55461686
commit cdea87168c
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -901,6 +901,7 @@ UINT8 btc_media_sink_enque_buf(BT_HDR *p_pkt)
if (GKI_queue_length(&btc_media_cb.RxSbcQ) >= MAX_OUTPUT_A2DP_FRAME_QUEUE_SZ) { if (GKI_queue_length(&btc_media_cb.RxSbcQ) >= MAX_OUTPUT_A2DP_FRAME_QUEUE_SZ) {
APPL_TRACE_WARNING("Pkt dropped\n"); APPL_TRACE_WARNING("Pkt dropped\n");
return GKI_queue_length(&btc_media_cb.RxSbcQ);
} }
APPL_TRACE_DEBUG("btc_media_sink_enque_buf + "); APPL_TRACE_DEBUG("btc_media_sink_enque_buf + ");