ret = sqlite3_step(stmt);
if (SQLITE_ROW != ret) {
- mc_error("end of row [%s]", sqlite3_errmsg(db_handle));
+ mc_error("[No-Error] There is no server list [%s]", sqlite3_errmsg(db_handle));
SQLITE3_FINALIZE(stmt);
SQLITE3_SAFE_FREE(sql_str);
return MEDIA_CONTROLLER_ERROR_NONE;
}
/* Create media controller service thread */
- svc_thread = g_thread_new("mc_svc_thread", (GThreadFunc)mc_svc_thread, NULL);
+ svc_thread = g_thread_new("mc_svc_thread", (GThreadFunc)mc_svc_thread, NULL);
/* Create Timer */
__mc_main_create_timer(g_mc_timer_id);
return MEDIA_CONTROLLER_ERROR_NONE;
}
mc_error("[No-error] idx [%d]", idx);
+
mc_list_data_set_t *data = g_list_nth_data(*connected_list, idx);
if (data != NULL) {
- mc_error("[No-error] idx [%p]", data);
+ mc_error("[No-error] data [%p]", data);
*connected_list = g_list_remove(*connected_list, data);
if (data->s_data != NULL) {
mc_error("[No-error] s_data [%p], length [%d]", data->s_data, g_list_length(data->s_data));
g_list_free_full(data->s_data, __mc_destroy_data_list);
}
- mc_error("[No-error] data set will be free");
+ mc_error("[No-error] data set will be free");
MC_SAFE_FREE(data);
}
/*Get Latest Server Info*/
ret = mc_client_get_latest_server_info(g_mc_client, &server_name, &server_state);
if (ret != MEDIA_CONTROLLER_ERROR_NONE) {
- g_print("Fail to mc_client_create");
+ g_print("Fail to mc_client_get_latest_server_info");
return ret;
}
ret = mc_client_destroy(g_mc_client);
if (ret != MEDIA_CONTROLLER_ERROR_NONE) {
- g_print("Fail to mc_client_create\n");
+ g_print("Fail to mc_client_destroy\n");
return ret;
}