From: Jeongmo Yang Date: Thu, 27 Oct 2016 02:08:08 +0000 (+0900) Subject: Reset focus register flag not to run sound focus related code when sound signal callb... X-Git-Tag: accepted/tizen/common/20161109.140301~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=refs%2Fchanges%2F45%2F94045%2F1;p=platform%2Fcore%2Fmultimedia%2Flibmm-camcorder.git Reset focus register flag not to run sound focus related code when sound signal callback is called [Version] 0.10.87 [Profile] Common [Issue Type] Bug fix [Dependency module] N/A [Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-mobile_20161026.4] Change-Id: Id022b6fe2a534592e529732fca31172eb62bea0a Signed-off-by: Jeongmo Yang --- diff --git a/packaging/libmm-camcorder.spec b/packaging/libmm-camcorder.spec index 2e1d8c9..b49e5d6 100644 --- a/packaging/libmm-camcorder.spec +++ b/packaging/libmm-camcorder.spec @@ -1,6 +1,6 @@ Name: libmm-camcorder Summary: Camera and recorder library -Version: 0.10.86 +Version: 0.10.87 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/mm_camcorder_internal.c b/src/mm_camcorder_internal.c index e7215a1..bec6530 100644 --- a/src/mm_camcorder_internal.c +++ b/src/mm_camcorder_internal.c @@ -3313,6 +3313,9 @@ void _mmcamcorder_sound_signal_callback(mm_sound_signal_name_t signal, int value } } + /* reset flag not to run sound focus related code since now */ + hcamcorder->sound_focus_register = FALSE; + _MMCAMCORDER_UNLOCK_ASM(hcamcorder); _mmcam_dbg_warn("done"); @@ -3364,14 +3367,14 @@ void _mmcamcorder_sound_focus_watch_cb(int id, mm_sound_focus_type_e focus_type, if (focus_state == FOCUS_IS_RELEASED) { _MMCamcorderMsgItem msg; - _mmcam_dbg_log("other process's FOCUS is acquired"); + _mmcam_dbg_log("other process's FOCUS is released"); msg.id = MM_MESSAGE_READY_TO_RESUME; _mmcamcorder_send_message((MMHandleType)hcamcorder, &msg); _mmcam_dbg_log("Finish opeartion"); } else if (focus_state == FOCUS_IS_ACQUIRED) { - _mmcam_dbg_log("other process's FOCUS is released : Stop pipeline[state:%d]", current_state); + _mmcam_dbg_log("other process's FOCUS is acquired : Stop pipeline[state:%d]", current_state); __mmcamcorder_force_stop(hcamcorder);