diff options
Diffstat (limited to 'btif')
-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; |