diff options
author | Kausik Sinnaswamy <kausik@broadcom.com> | 2012-04-16 16:46:32 +0530 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-07-14 11:19:17 -0700 |
commit | 7eac5bc41ced174c18783dc2da0c934be0b3a1b7 (patch) | |
tree | 6d3ca4fb187a9a02211394bd613da6ebd2f211e7 | |
parent | 35207a7fe091c5ade3ac3a80acf8366beb6e21da (diff) | |
download | external_bluetooth_bluedroid-7eac5bc41ced174c18783dc2da0c934be0b3a1b7.zip external_bluetooth_bluedroid-7eac5bc41ced174c18783dc2da0c934be0b3a1b7.tar.gz external_bluetooth_bluedroid-7eac5bc41ced174c18783dc2da0c934be0b3a1b7.tar.bz2 |
Media Task was not getting shutdown due to incorrect event and stale
state information. Resolved these.
Change-Id: Ia003e53c2aeae5167c41d040be5665c6a78ea868
-rw-r--r-- | btif/src/btif_dm.c | 2 | ||||
-rwxr-xr-x | btif/src/btif_media_task.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/btif/src/btif_dm.c b/btif/src/btif_dm.c index 86367ad..bd744ff 100644 --- a/btif/src/btif_dm.c +++ b/btif/src/btif_dm.c @@ -139,7 +139,7 @@ bt_status_t btif_in_execute_service_request(tBTA_SERVICE_ID service_id, case BTA_HID_SERVICE_ID: { btif_hh_execute_service(b_enable); - } + }break; default: BTIF_TRACE_ERROR1("%s: Unknown service being enabled", __FUNCTION__); diff --git a/btif/src/btif_media_task.c b/btif/src/btif_media_task.c index 92699c4..b0133a9 100755 --- a/btif/src/btif_media_task.c +++ b/btif/src/btif_media_task.c @@ -739,7 +739,7 @@ int btif_a2dp_start_media_task(void) void btif_a2dp_stop_media_task(void) { APPL_TRACE_EVENT0("## A2DP STOP MEDIA TASK ##"); - GKI_send_msg(BT_MEDIA_TASK, BTIF_MEDIA_TASK_KILL, NULL); + GKI_send_event(BT_MEDIA_TASK, BTIF_MEDIA_TASK_KILL); } /***************************************************************************** @@ -1226,6 +1226,9 @@ int btif_media_task(void *p) } } + /* Clear media task flag */ + media_task_running = 0; + APPL_TRACE_DEBUG0("MEDIA TASK EXITING"); return 0; |