/* * Port */ /** * note: this is not intended to be called directly by elements (which should * instead use g_omx_core_new_port()) */ GOmxPort * g_omx_port_new (GOmxCore * core, guint index) { GOmxPort *port; port = g_new0 (GOmxPort, 1);
port->core = core; port->port_index = index; port->num_buffers = 0; port->buffer_size = 0; port->buffers = NULL; port->enabled = TRUE; port->queue = async_queue_new (); port->mutex = g_mutex_new ();
return port; }