[Version] 0.10.106
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20170210.1]
Change-Id: I58327e49b21d1eca81ce7954a8bee1b83e6b4fe8
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Name: libmm-camcorder
Summary: Camera and recorder library
Name: libmm-camcorder
Summary: Camera and recorder library
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
- _mmcam_dbg_log("sound focus callback : focus state %d, reason %s",
+ _mmcam_dbg_warn("sound focus callback : focus state %d, reason %s",
focus_state, reason_for_change ? reason_for_change : "N/A");
if (hcamcorder->session_flags & MM_SESSION_OPTION_UNINTERRUPTIBLE) {
focus_state, reason_for_change ? reason_for_change : "N/A");
if (hcamcorder->session_flags & MM_SESSION_OPTION_UNINTERRUPTIBLE) {
if (focus_state == FOCUS_IS_RELEASED) {
hcamcorder->acquired_focus &= ~focus_type;
if (focus_state == FOCUS_IS_RELEASED) {
hcamcorder->acquired_focus &= ~focus_type;
- _mmcam_dbg_log("FOCUS is released [type %d, remained focus %d] : Stop pipeline[state:%d]",
+ _mmcam_dbg_warn("FOCUS is released [type %d, remained focus %d] : Stop pipeline[state:%d]",
focus_type, hcamcorder->acquired_focus, current_state);
__mmcamcorder_force_stop(hcamcorder);
focus_type, hcamcorder->acquired_focus, current_state);
__mmcamcorder_force_stop(hcamcorder);
- _mmcam_dbg_log("Finish opeartion. Pipeline is released");
+ _mmcam_dbg_warn("Finish opeartion. Pipeline is released");
} else if (focus_state == FOCUS_IS_ACQUIRED) {
_MMCamcorderMsgItem msg;
hcamcorder->acquired_focus |= focus_type;
} else if (focus_state == FOCUS_IS_ACQUIRED) {
_MMCamcorderMsgItem msg;
hcamcorder->acquired_focus |= focus_type;
- _mmcam_dbg_log("FOCUS is acquired [type %d, new focus %d]",
+ _mmcam_dbg_warn("FOCUS is acquired [type %d, new focus %d]",
focus_type, hcamcorder->acquired_focus);
msg.id = MM_MESSAGE_READY_TO_RESUME;
_mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
focus_type, hcamcorder->acquired_focus);
msg.id = MM_MESSAGE_READY_TO_RESUME;
_mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
- _mmcam_dbg_log("Finish opeartion");
+ _mmcam_dbg_warn("Finish opeartion");
- _mmcam_dbg_log("unknown focus state %d", focus_state);
+ _mmcam_dbg_warn("unknown focus state %d", focus_state);
_MMCAMCORDER_UNLOCK_ASM(hcamcorder);
_MMCAMCORDER_UNLOCK_ASM(hcamcorder);
+ _mmcam_dbg_warn("done");
+
mmf_return_if_fail(hcamcorder);
mmf_return_if_fail(hcamcorder);
- _mmcam_dbg_log("sound signal %d - value %d", signal, value);
+ _mmcam_dbg_warn("sound signal %d - value %d", signal, value);
_MMCAMCORDER_LOCK_ASM(hcamcorder);
if (signal == MM_SOUND_SIGNAL_RELEASE_INTERNAL_FOCUS && value == 1) {
_MMCAMCORDER_LOCK_ASM(hcamcorder);
if (signal == MM_SOUND_SIGNAL_RELEASE_INTERNAL_FOCUS && value == 1) {
- _mmcam_dbg_log("watch cb id %d", hcamcorder->sound_focus_watch_id);
+ _mmcam_dbg_warn("watch cb id %d", hcamcorder->sound_focus_watch_id);
/* unregister watch callback */
if (hcamcorder->sound_focus_watch_id > 0) {
mm_sound_unset_focus_watch_callback(hcamcorder->sound_focus_watch_id);
/* unregister watch callback */
if (hcamcorder->sound_focus_watch_id > 0) {
mm_sound_unset_focus_watch_callback(hcamcorder->sound_focus_watch_id);
- _mmcam_dbg_log("unset watch cb done");
+ _mmcam_dbg_warn("unset watch cb done");
hcamcorder->sound_focus_watch_id = 0;
}
}
hcamcorder->sound_focus_watch_id = 0;
}
}
- _mmcam_dbg_log("sound focus watch callback : id %d, focus state %d, reason %s",
+ _mmcam_dbg_warn("sound focus watch callback : id %d, focus state %d, reason %s",
id, focus_state, reason_for_change ? reason_for_change : "N/A");
if (hcamcorder->session_flags & MM_SESSION_OPTION_UNINTERRUPTIBLE) {
id, focus_state, reason_for_change ? reason_for_change : "N/A");
if (hcamcorder->session_flags & MM_SESSION_OPTION_UNINTERRUPTIBLE) {
if (focus_state == FOCUS_IS_RELEASED) {
_MMCamcorderMsgItem msg;
if (focus_state == FOCUS_IS_RELEASED) {
_MMCamcorderMsgItem msg;
- _mmcam_dbg_log("other process's FOCUS is released");
+ _mmcam_dbg_warn("other process's FOCUS is released");
msg.id = MM_MESSAGE_READY_TO_RESUME;
_mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
msg.id = MM_MESSAGE_READY_TO_RESUME;
_mmcamcorder_send_message((MMHandleType)hcamcorder, &msg);
- _mmcam_dbg_log("Finish opeartion");
+ _mmcam_dbg_warn("Finish opeartion");
} else if (focus_state == FOCUS_IS_ACQUIRED) {
} else if (focus_state == FOCUS_IS_ACQUIRED) {
- _mmcam_dbg_log("other process's FOCUS is acquired : Stop pipeline[state:%d]", current_state);
+ _mmcam_dbg_warn("other process's FOCUS is acquired : Stop pipeline[state:%d]", current_state);
__mmcamcorder_force_stop(hcamcorder);
__mmcamcorder_force_stop(hcamcorder);
- _mmcam_dbg_log("Finish opeartion. Pipeline is released");
+ _mmcam_dbg_warn("Finish opeartion. Pipeline is released");
- _mmcam_dbg_log("unknown focus state %d", focus_state);
+ _mmcam_dbg_warn("unknown focus state %d", focus_state);
_MMCAMCORDER_UNLOCK_ASM(hcamcorder);
_MMCAMCORDER_UNLOCK_ASM(hcamcorder);
+ _mmcam_dbg_warn("done");
+
mmf_return_if_fail((MMHandleType)camcorder);
mmf_return_if_fail(context);
mmf_return_if_fail((MMHandleType)camcorder);
mmf_return_if_fail(context);
- _mmcam_dbg_log("enter - state %d", context->state);
+ _mmcam_dbg_warn("enter - state %d", context->state);
_MMCAMCORDER_LOCK_RESOURCE(camcorder);
switch (context->state) {
case MRP_RES_CONNECTED:
_MMCAMCORDER_LOCK_RESOURCE(camcorder);
switch (context->state) {
case MRP_RES_CONNECTED:
- _mmcam_dbg_log(" - connected to Murphy");
+ _mmcam_dbg_warn(" - connected to Murphy");
if ((rset = mrp_res_list_resources(context)) != NULL) {
mrp_res_string_array_t *resource_names;
resource_names = mrp_res_list_resource_names(rset);
if ((rset = mrp_res_list_resources(context)) != NULL) {
mrp_res_string_array_t *resource_names;
resource_names = mrp_res_list_resource_names(rset);
for (i = 0; i < resource_names->num_strings; i++) {
resource = mrp_res_get_resource_by_name(rset, resource_names->strings[i]);
if (resource)
for (i = 0; i < resource_names->num_strings; i++) {
resource = mrp_res_get_resource_by_name(rset, resource_names->strings[i]);
if (resource)
- _mmcam_dbg_log(" - available resource: %s", resource->name);
+ _mmcam_dbg_warn(" - available resource: %s", resource->name);
}
mrp_res_free_string_array(resource_names);
}
}
mrp_res_free_string_array(resource_names);
}
_MMCAMCORDER_UNLOCK_RESOURCE(camcorder);
_MMCAMCORDER_UNLOCK_RESOURCE(camcorder);
- _mmcam_dbg_log("leave");
+ _mmcam_dbg_warn("leave");
if (res == NULL) {
_mmcam_dbg_warn(" -- %s not present in resource set", mm_camcorder_resource_str[i]);
} else {
if (res == NULL) {
_mmcam_dbg_warn(" -- %s not present in resource set", mm_camcorder_resource_str[i]);
} else {
- _mmcam_dbg_log(" -- resource name [%s] -> [%s]",
+ _mmcam_dbg_warn(" -- resource name [%s] -> [%s]",
res->name, __mmcamcorder_resource_state_to_str(res->state));
if (res->state == MRP_RES_RESOURCE_ACQUIRED) {
camcorder->resource_manager.acquire_remain--;
if (camcorder->resource_manager.acquire_remain <= 0) {
res->name, __mmcamcorder_resource_state_to_str(res->state));
if (res->state == MRP_RES_RESOURCE_ACQUIRED) {
camcorder->resource_manager.acquire_remain--;
if (camcorder->resource_manager.acquire_remain <= 0) {
- _mmcam_dbg_log("send signal - resource acquire done");
+ _mmcam_dbg_warn("send signal - resource acquire done");
_MMCAMCORDER_RESOURCE_SIGNAL(camcorder);
} else {
_mmcam_dbg_warn("remained acquire count %d",
_MMCAMCORDER_RESOURCE_SIGNAL(camcorder);
} else {
_mmcam_dbg_warn("remained acquire count %d",
camcorder->resource_manager.acquire_remain++;
if (camcorder->resource_manager.acquire_remain >= camcorder->resource_manager.acquire_count) {
camcorder->resource_manager.acquire_remain++;
if (camcorder->resource_manager.acquire_remain >= camcorder->resource_manager.acquire_count) {
- _mmcam_dbg_log("resource release done");
+ _mmcam_dbg_warn("resource release done");
if (camcorder->state > MM_CAMCORDER_STATE_NULL) {
if (camcorder->state > MM_CAMCORDER_STATE_NULL) {
- _mmcam_dbg_log("send resource signal");
+ _mmcam_dbg_warn("send resource signal");
_MMCAMCORDER_RESOURCE_SIGNAL(camcorder);
} else {
_MMCAMCORDER_RESOURCE_SIGNAL(camcorder);
} else {
- _mmcam_dbg_log("skip resource signal - state %d", camcorder->state);
+ _mmcam_dbg_warn("skip resource signal - state %d", camcorder->state);
}
} else {
_mmcam_dbg_warn("acquired %d, lost %d",
}
} else {
_mmcam_dbg_warn("acquired %d, lost %d",
if (res == NULL) {
_mmcam_dbg_warn(" -- %s not present in resource set", mm_camcorder_resource_str[i]);
} else {
if (res == NULL) {
_mmcam_dbg_warn(" -- %s not present in resource set", mm_camcorder_resource_str[i]);
} else {
- _mmcam_dbg_log(" -- resource name [%s] -> [%s]", res->name, __mmcamcorder_resource_state_to_str(res->state));
+ _mmcam_dbg_warn(" -- resource name [%s] -> [%s]", res->name, __mmcamcorder_resource_state_to_str(res->state));
return MM_ERROR_INVALID_ARGUMENT;
}
return MM_ERROR_INVALID_ARGUMENT;
}
- _mmcam_dbg_log("Dbus call - obj [%s], iface [%s], method [%s]", object, iface, method);
+ _mmcam_dbg_warn("Dbus call - obj [%s], iface [%s], method [%s]", object, iface, method);
if (is_sync) {
dbus_reply = g_dbus_connection_call_sync(conn,
bus_name, object, iface, method, args, NULL,
G_DBUS_CALL_FLAGS_NONE, G_DBUS_TIMEOUT, NULL, NULL);
if (dbus_reply) {
if (is_sync) {
dbus_reply = g_dbus_connection_call_sync(conn,
bus_name, object, iface, method, args, NULL,
G_DBUS_CALL_FLAGS_NONE, G_DBUS_TIMEOUT, NULL, NULL);
if (dbus_reply) {
- _mmcam_dbg_log("Method Call '%s.%s' Success", iface, method);
+ _mmcam_dbg_warn("Method Call '%s.%s' Success", iface, method);
*result = dbus_reply;
} else {
_mmcam_dbg_err("dbus method call sync reply failed");
*result = dbus_reply;
} else {
_mmcam_dbg_err("dbus method call sync reply failed");
G_DBUS_CALL_FLAGS_NONE, G_DBUS_TIMEOUT, NULL, NULL, NULL);
}
G_DBUS_CALL_FLAGS_NONE, G_DBUS_TIMEOUT, NULL, NULL, NULL);
}
+ _mmcam_dbg_warn("done");
+
_MMCamcorderGDbusCbInfo *gdbus_info = NULL;
mmf_camcorder_t *hcamcorder = NULL;
_MMCamcorderGDbusCbInfo *gdbus_info = NULL;
mmf_camcorder_t *hcamcorder = NULL;
- _mmcam_dbg_log("entered");
+ _mmcam_dbg_warn("entered");
if (!param || !user_data) {
_mmcam_dbg_err("invalid parameter %p %p", param, user_data);
if (!param || !user_data) {
_mmcam_dbg_err("invalid parameter %p %p", param, user_data);
g_mutex_lock(&gdbus_info->sync_mutex);
g_mutex_lock(&gdbus_info->sync_mutex);
- _mmcam_dbg_log("gdbus_info->param %d, played_idx : %d, handle : %p",
+ _mmcam_dbg_warn("gdbus_info->param %d, played_idx : %d, handle : %p",
gdbus_info->param, played_idx, hcamcorder);
if (gdbus_info->param == played_idx) {
gdbus_info->param, played_idx, hcamcorder);
if (gdbus_info->param == played_idx) {
g_mutex_unlock(&gdbus_info->sync_mutex);
g_mutex_unlock(&gdbus_info->sync_mutex);
+ _mmcam_dbg_warn("done");
+
g_mutex_lock(&gdbus_info->sync_mutex);
g_mutex_lock(&gdbus_info->sync_mutex);
- _mmcam_dbg_log("entered");
+ _mmcam_dbg_warn("entered");
if (gdbus_info->is_playing == FALSE) {
_mmcam_dbg_log("callback is already returned");
if (gdbus_info->is_playing == FALSE) {
_mmcam_dbg_log("callback is already returned");
end_time = g_get_monotonic_time() + (time_out * G_TIME_SPAN_MILLISECOND);
if (g_cond_wait_until(&gdbus_info->sync_cond, &gdbus_info->sync_mutex, end_time)) {
end_time = g_get_monotonic_time() + (time_out * G_TIME_SPAN_MILLISECOND);
if (g_cond_wait_until(&gdbus_info->sync_cond, &gdbus_info->sync_mutex, end_time)) {
- _mmcam_dbg_log("wait signal received");
+ _mmcam_dbg_warn("wait signal received");
} else {
_mmcam_dbg_err("wait time is expired");
ret = MM_ERROR_CAMCORDER_RESPONSE_TIMEOUT;
} else {
_mmcam_dbg_err("wait time is expired");
ret = MM_ERROR_CAMCORDER_RESPONSE_TIMEOUT;
g_mutex_unlock(&gdbus_info->sync_mutex);
g_mutex_unlock(&gdbus_info->sync_mutex);
+ _mmcam_dbg_warn("done");
+