SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] Current audio type is already set : %s", audio_type);
return 0;
}
+ } else {
+ SLOG(LOG_ERROR, TAG_VCD, "[Recorder ERROR] Recorder is NOT created");
+ return VCD_ERROR_INVALID_STATE;
}
SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] set audio type (%s)", audio_type);
return EINA_TRUE;
}
+static void __timer_read_normal_func(void *data)
+{
+ SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] before __read_normal_func");
+ ecore_timer_add(0, __read_normal_func, NULL);
+ return;
+}
+
static void __check_audio_format()
{
vcp_audio_type_e type;
}
/* Add ecore timer to read audio data */
- ecore_timer_add(0, __read_normal_func, NULL);
+ ecore_main_loop_thread_safe_call_async(__timer_read_normal_func, NULL);
SLOG(LOG_DEBUG, TAG_VCD, "[Recorder] Start audio in recorder");
}