vc_service_state_e before_state;
vc_mgr_client_get_service_state(g_vc_m, &before_state);
- if (current_state == before_state) {
- SLOG(LOG_WARN, TAG_VCM, "Service State NOT changed : Before(%d) Current(%d)",
- before_state, current_state);
- return 0;
- }
-
SLOG(LOG_DEBUG, TAG_VCM, "Service State changed : Before(%d) Current(%d)",
before_state, current_state);
vc_mgr_client_set_internal_state(g_vc_m, VC_INTERNAL_STATE_NONE);
}
+ if (current_state == before_state) {
+ SLOG(LOG_WARN, TAG_VCM, "Service State NOT changed : Before(%d) Current(%d)",
+ before_state, current_state);
+ return 0;
+ }
+
/* Save service state */
vc_mgr_client_set_service_state(g_vc_m, current_state);
/* system > exclusive > foreground = widget > system_background > background */
int i = 0;
int* filtered_id = (int*)calloc(count, sizeof(int));
+ if (!filtered_id) {
+ SLOG(LOG_ERROR, TAG_VCD, "[Server ERROR] Fail to allocate memory");
+ return;
+ }
int filtered_count = 0;
int top_priority = VC_COMMAND_PRIORITY_BACKGROUND;
for (i = 0; i < count; i++) {
if (VCD_STATE_READY == state) {
SLOG(LOG_DEBUG, TAG_VCD, "[Server] Current state is READY");
vcd_recorder_stop();
+ vcdc_send_service_state(VCD_STATE_READY);
return VCD_ERROR_NONE;
}