idx++;
}
- MUSE_FREE(hosts);
+ free(hosts);
iniparser_freedict(mc_dict);
int_data[idx] = json_object_get_int(json_object_array_get_idx(val, idx));
break;
default:
- LOGW("type is not yet implemented");
+ LOGE("The value (%d) of json type is invalid", j_type);
break;
}
Name: mused
Summary: A multimedia daemon
-Version: 0.3.26
+Version: 0.3.27
Release: 0
Group: System/Libraries
License: Apache-2.0
* See the accompanying LICENSE.txt for details.
*/
-#ifndef __MUSE_CORE_WORKQUEUE_H__
-#define __MUSE_CORE_WORKQUEUE_H__
+#ifndef __MUSE_SERVER_WORKQUEUE_H__
+#define __MUSE_SERVER_WORKQUEUE_H__
#ifdef __cplusplus
extern "C" {
#ifdef __cplusplus
}
#endif
-#endif /* __MUSE_CORE_WORKQUEUE_H__ */
+#endif /* __MUSE_SERVER_WORKQUEUE_H__ */
raw_data = data - sizeof(muse_recv_data_head_t);
- MUSE_G_FREE(raw_data);
+ g_free(raw_data);
}
bool muse_server_ipc_get_data_info(char *data, uint64_t *data_id, int *size)
host = strtok_r(NULL, INI_PARSER_COMMA, &ptr);
conf->host_cnt++;
- MUSE_FREE(key);
+ free(key);
}
return MM_ERROR_NONE;
ms_log_process_info(ms_get_instance()->pid);
}
- MUSE_FREE(job);
+ free(job);
g_return_val_if_fail(m->ch[MUSE_CHANNEL_MSG].data_thread, FALSE);
LOGD("Leave");
muse_core_connection_close(m->ch[MUSE_CHANNEL_MSG].sock_fd);
}
- MUSE_FREE(job);
+ free(job);
g_return_val_if_fail(m->ch[MUSE_CHANNEL_DATA].data_thread, FALSE);
LOGD("Leave");
if (g_hash_table_lookup_extended(module->dllsym_table, name, &orig_key, NULL)) {
g_hash_table_remove(module->dllsym_table, name);
g_hash_table_insert(module->dllsym_table, g_strdup(name), value);
- MUSE_G_FREE(orig_key);
+ g_free(orig_key);
} else {
/* Insert into our hash table it is not a duplicate. */
g_hash_table_insert(module->dllsym_table, g_strdup(name), value);
ms_workqueue_job_t *job;
char err_msg[MUSE_MSG_LEN_MAX] = {'\0',};
+ g_return_val_if_fail(worker, NULL);
+
while (1) {
/* Wait until we get notified. */
pthread_mutex_lock(&worker->workqueue->jobs_mutex);
}
}
- MUSE_FREE(worker);
+ free(worker);
pthread_exit(NULL);
}
worker->workqueue = workqueue;
if (pthread_create(&worker->thread, NULL, _ms_workqueue_worker_function, (void *)worker)) {
LOGE("Failed to start all worker threads");
- MUSE_FREE(worker);
+ free(worker);
return;
}
LL_ADD(worker, worker->workqueue->workers);