summaryrefslogtreecommitdiff
path: root/src/mm_radio_priv_hal.c
diff options
context:
space:
mode:
authorGilbok Lee <gilbok.lee@samsung.com>2016-11-22 15:55:36 +0900
committerGilbok Lee <gilbok.lee@samsung.com>2016-11-22 15:55:36 +0900
commit85f6cd88a2bbda0ba94cb5947fc992af5eac2c66 (patch)
tree87ccf3f9a40f8024594d971d23de759bde9888f0 /src/mm_radio_priv_hal.c
parent5b4287de9b021d91f6f06ad42ce979a58822a989 (diff)
downloadlibmm-radio-85f6cd88a2bbda0ba94cb5947fc992af5eac2c66.tar.gz
libmm-radio-85f6cd88a2bbda0ba94cb5947fc992af5eac2c66.tar.bz2
libmm-radio-85f6cd88a2bbda0ba94cb5947fc992af5eac2c66.zip
Fix interrupted callback bug
When mm_radio register sound_focus_watch_callback, mm_radio post wrong code type. [Version] 0.2.14 [Profile] Mobile, Wearable [Issue Type] Fix bugs Change-Id: Idea5a175d26fb347048e4255000de3d9c2e177e4
Diffstat (limited to 'src/mm_radio_priv_hal.c')
-rw-r--r--src/mm_radio_priv_hal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm_radio_priv_hal.c b/src/mm_radio_priv_hal.c
index d02de91..a349c39 100644
--- a/src/mm_radio_priv_hal.c
+++ b/src/mm_radio_priv_hal.c
@@ -1348,7 +1348,7 @@ static void __mmradio_sound_focus_cb(int id, mm_sound_focus_type_e focus_type,
MMRADIO_LOG_FENTER();
MMRADIO_CHECK_INSTANCE_RETURN_VOID(radio);
- mmradio_get_sound_focus_reason(focus_state, reason_for_change, &event_source, &postMsg);
+ mmradio_get_sound_focus_reason(focus_state, reason_for_change, FALSE, &event_source, &postMsg);
radio->sound_focus.event_src = event_source;
switch (focus_state) {
@@ -1400,7 +1400,7 @@ static void __mmradio_sound_focus_watch_cb(int id, mm_sound_focus_type_e focus_t
MMRADIO_LOG_FENTER();
MMRADIO_CHECK_INSTANCE_RETURN_VOID(radio);
- mmradio_get_sound_focus_reason(focus_state, reason_for_change, &event_source, &postMsg);
+ mmradio_get_sound_focus_reason(focus_state, reason_for_change, TRUE, &event_source, &postMsg);
radio->sound_focus.event_src = event_source;
switch (focus_state) {