summaryrefslogtreecommitdiffstats
path: root/btif/src/btif_media_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'btif/src/btif_media_task.c')
-rwxr-xr-xbtif/src/btif_media_task.c5
1 files changed, 4 insertions, 1 deletions
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;