; parameters for initializing gstreamer
; DEFAULT SET (--gst-debug=*:2)
gstparam1=--gst-debug=*:2
-gstparam2=--gst-disable-registry-update
-gstparam3=--gst-disable-segtrap
+gstparam2=--gst-disable-segtrap
+gstparam3=
gstparam4=
gstparam5=
gstparam6=
Name: mused
Summary: A Media Daemon library in Tizen Native API
-Version: 0.1.1
+Version: 0.1.2
Release: 0
Group: System/Libraries
License: Apache-2.0
}
close(fd);
-
/* Close out the standard file descriptors */
close(STDIN_FILENO);
close(STDOUT_FILENO);
return false;
g_source_set_callback(src, (GSourceFunc) callback, param, NULL);
-
g_source_attach(src, g_main_loop_get_context(g_loop));
g_source_unref(src);
g_atomic_int_set(&server->running, 1);
for (i = 0; i < MUSE_CHANNEL_MAX; i++) {
- if (!_muse_core_attach_server(fd[i],
- _muse_core_connection_handler, (gpointer)(intptr_t) i)) {
+ if (!_muse_core_attach_server(fd[i], _muse_core_connection_handler, (gpointer)(intptr_t) i)) {
LOGD("Fail to attach server fd %d", fd[i]);
MUSE_FREE(server);
return NULL;
if (client_sockfd < 0) {
LOGE("failed to accept");
- goto out;
+ return FALSE;
}
if (channel == MUSE_CHANNEL_MSG) {
return TRUE;
out:
close(client_sockfd);
-
MUSE_FREE(module);
MUSE_FREE(job);
static int _muse_core_log_open_work(const char *path)
{
+ if (access(path, F_OK) == 0)
+ unlink(path);
return open(path, O_CREAT | O_APPEND | O_WRONLY | O_NONBLOCK, 0666);
}
{
int selected_index, index;
struct stat st;
- char file[MAX_FILE_NUM][WRITE_DEFAULT_BLOCK_SIZE];
+ char file[MAX_FILE_NUM][TUNABLE_CALLER_DEPTH];
for (index = 0; index < MAX_FILE_NUM; index++)
snprintf(file[index], strlen(LOGFILE) + 3, "%s.%d", LOGFILE, index);
stat(file[index], &st);
g_muse_core_log->size = st.st_size;
if (g_muse_core_log->size > MAX_SIZE) {
- if (index == MAX_FILE_NUM - 1) {
- unlink(file[0]);
+ if (index == MAX_FILE_NUM - 1)
selected_index = 0;
- } else {
+ else
selected_index = index + 1;
- }
+
break;
} else {
selected_index = index;
g_return_if_fail(module != NULL);
g_return_if_fail(keyname != NULL);
- g_hash_table_insert(g_muse_core_module->table[module->api_module], keyname, GINT_TO_POINTER(value));
+ g_hash_table_insert(g_muse_core_module->table[module->api_module], g_strdup(keyname), GINT_TO_POINTER(value));
}
static int _muse_core_module_get_dllsymbol_value(muse_module_h module, const char *keyname, int *value)
gst_param_cnt = muse_core_config_get_instance()->get_gst_param_cnt();
argc = malloc(sizeof(gint));
- g_return_val_if_fail(argc != NULL, NULL);
+ g_return_if_fail(argc != NULL);
/* add gst_param */
argv = malloc(sizeof(gchar*) * (gst_param_cnt + 1));
register char *cp;
if (si == 1) {
- if (muse_tool_optind >= argc ||argv[muse_tool_optind][0] != '-' || argv[muse_tool_optind][1] == '\0') {
+ if (muse_tool_optind >= argc ||argv[muse_tool_optind][0] != '-' || argv[muse_tool_optind][1] == '\0')
return(EOF);
- } else if (strncmp(argv[muse_tool_optind], "--", 2) == 0) {
- muse_tool_optind++;
- return(EOF);
- }
}
muse_tool_optopt = ri = argv[muse_tool_optind][si];
if (ri == ':' || (cp=strchr(opts, ri)) == NULL) {