#define REC_LOG_CRITICAL(format, args...) \
do { \
- if (g_mmcam_log_level >= RECORDER_LOG_LEVEL_CRITICAL) \
+ if (_recorder_get_log_level() >= RECORDER_LOG_LEVEL_CRITICAL) \
LOGF(format, ##args); \
} while (0)
#define REC_LOG_ERROR(format, args...) \
do { \
- if (g_mmcam_log_level >= RECORDER_LOG_LEVEL_ERROR) \
+ if (_recorder_get_log_level() >= RECORDER_LOG_LEVEL_ERROR) \
LOGE(format, ##args); \
} while (0)
#define REC_LOG_WARNING(format, args...) \
do { \
- if (g_mmcam_log_level >= RECORDER_LOG_LEVEL_WARNING) \
+ if (_recorder_get_log_level() >= RECORDER_LOG_LEVEL_WARNING) \
LOGW(format, ##args); \
} while (0)
#define REC_LOG_INFO(format, args...) \
do { \
- if (g_mmcam_log_level >= RECORDER_LOG_LEVEL_INFO) \
+ if (_recorder_get_log_level() >= RECORDER_LOG_LEVEL_INFO) \
LOGI(format, ##args); \
} while (0)
#define REC_LOG_DEBUG(format, args...) \
do { \
- if (g_mmcam_log_level >= RECORDER_LOG_LEVEL_DEBUG) \
+ if (_recorder_get_log_level() >= RECORDER_LOG_LEVEL_DEBUG) \
LOGD(format, ##args); \
} while (0)
#define REC_LOG_VERBOSE(format, args...) \
do { \
- if (g_mmcam_log_level >= RECORDER_LOG_LEVEL_VERBOSE) \
+ if (_recorder_get_log_level() >= RECORDER_LOG_LEVEL_VERBOSE) \
LOGD("[V] "format, ##args); \
} while (0)
void *user_data;
} recorder_cb_info;
-int __convert_recorder_error_code(const char *func, int code);
+int _recorder_get_log_level(void);
#ifdef __cplusplus
}
Name: capi-media-recorder
Summary: A Recorder API
-Version: 0.3.29
+Version: 0.3.30
Release: 0
Group: Multimedia/API
License: Apache-2.0
static GMutex g_rec_idle_event_lock;
/* log level */
-extern int g_mmcam_log_level;
+static int g_recorder_log_level;
static void __recorder_update_api_waiting(recorder_cb_info_s *cb_info, int api, int value)
int destroy_ret = RECORDER_ERROR_NONE;
int sock_fd = -1;
int module_index = -1;
- int log_level = g_mmcam_log_level;
+ int log_level = g_recorder_log_level;
int send_ret = 0;
char *send_msg = NULL;
char *root_directory = NULL;
/* get log level from message */
muse_recorder_msg_get(log_level, pc->cb_info->recv_msg);
- g_mmcam_log_level = log_level;
+ g_recorder_log_level = log_level;
muse_recorder_msg_get_pointer(handle, pc->cb_info->recv_msg);
if (handle == 0) {
//LCOV_EXCL_STOP
}
- REC_LOG_INFO("root directory[%s]", root_directory);
+ REC_LOG_INFO("root directory[%s], log level[%d]", root_directory, g_recorder_log_level);
RECORDER_MSG_PARAM_SET(param, STRING, root_directory);
return ret;
}
+
+
+int _recorder_get_log_level(void)
+{
+ return g_recorder_log_level;
+}
};
typedef struct _appdata appdata;
-struct appcore_ops ops = {
+static struct appcore_ops ops = {
.create = app_create,
.terminate = app_terminate,
};
-appdata ad;
-GIOChannel *stdin_channel;
-int resolution_set;
-int g_current_state;
-int src_w, src_h;
-bool isMultishot;
-int cam_info;
-int recorder_state;
-int multishot_num;
+static appdata ad;
+static GIOChannel *stdin_channel;
+static int recorder_state;
static GTimer *timer = NULL;
static int g_recorder_device_changed_cb_id;
static int ve_frame_count = 0;