GOmxCore * g_omx_core_new (void *object) { GOmxCore *core; core = g_new0 (GOmxCore, 1);
core->object = object; core->ports = g_ptr_array_new ();
core->omx_state_condition = g_cond_new (); core->omx_state_mutex = g_mutex_new ();
core->done_sem = g_sem_new (); core->flush_sem = g_sem_new (); core->port_sem = g_sem_new ();
core->omx_state = OMX_StateInvalid;
return core; }