GOmxPort * g_omx_core_new_port (GOmxCore * core, guint index) { GOmxPort *port = get_port (core, index);
if (port) { GST_WARNING_OBJECT (core->object, "port %d already exists", index); return port; }
port = g_omx_port_new (core, index); g_ptr_array_insert (core->ports, index, port);
return port; }