• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


Commit MetaInfo

修訂12008bdb1984ac4f727a7ce58cb95844cbae629f (tree)
時間2016-09-15 23:28:39
作者Linux Build Service Account <lnxbuild@loca...>
CommiterGerrit - the friendly Code Review server

Log Message

Merge "Split A2p: Fix for stream failure in remote initiated connection" into bt.lnx.2.1-dev

Change Summary

差異

--- a/btif/src/btif_media_task.c
+++ b/btif/src/btif_media_task.c
@@ -2055,6 +2055,11 @@ static void btif_media_thread_handle_cmd(fixed_queue_t *queue, UNUSED_ATTR void
20552055 case BTIF_MEDIA_STOP_VS_CMD:
20562056 if (btif_media_cb.tx_started && !btif_media_cb.tx_stop_initiated)
20572057 btif_media_send_vendor_stop();
2058+ else if(btif_media_cb.tx_start_initiated && !btif_media_cb.tx_started)
2059+ {
2060+ APPL_TRACE_IMP("Suspend Req when VSC exchange in progress,reset VSC");
2061+ btif_media_send_reset_vendor_state();
2062+ }
20582063 else
20592064 APPL_TRACE_IMP("ignore VS stop request");
20602065 break;
@@ -2096,8 +2101,14 @@ static void btif_media_thread_handle_cmd(fixed_queue_t *queue, UNUSED_ATTR void
20962101 #if (BTA_AV_CO_CP_SCMS_T == TRUE)
20972102 btif_media_send_vendor_scmst_hdr();
20982103 #else
2099- if (!btif_media_cb.vs_configs_exchanged)
2104+ if (!btif_media_cb.vs_configs_exchanged &&
2105+ btif_media_cb.tx_start_initiated)
21002106 btif_media_cb.vs_configs_exchanged = TRUE;
2107+ else
2108+ {
2109+ APPL_TRACE_ERROR("Dont send start,stream suspended")
2110+ break;
2111+ }
21012112 btif_media_send_vendor_start();
21022113 #endif
21032114 break;
@@ -2121,8 +2132,14 @@ static void btif_media_thread_handle_cmd(fixed_queue_t *queue, UNUSED_ATTR void
21212132 break;
21222133 #if (BTA_AV_CO_CP_SCMS_T == TRUE)
21232134 case BTIF_MEDIA_VS_A2DP_SET_SCMST_HDR_SUCCESS:
2124- if (!btif_media_cb.vs_configs_exchanged)
2135+ if (!btif_media_cb.vs_configs_exchanged &&
2136+ btif_media_cb.tx_start_initiated)
21252137 btif_media_cb.vs_configs_exchanged = TRUE;
2138+ else
2139+ {
2140+ APPL_TRACE_ERROR("Dont send start,stream suspended")
2141+ break;
2142+ }
21262143 btif_media_send_vendor_start();
21272144 break;
21282145 #endif