参照元†
返り値†
static GOmxImp *
imp_new (const gchar * name)
{
GOmxImp *imp;
imp = g_new0 (GOmxImp, 1);
/* Load the OpenMAX IL symbols */
{
void *handle;
GST_DEBUG ("loading: %s", name);
imp->dl_handle = handle = dlopen (name, RTLD_LAZY);
GST_DEBUG ("dlopen(%s) -> %p", name, handle);
if (!handle) {
g_warning ("%s\n", dlerror ());
g_free (imp);
return NULL;
}
imp->mutex = g_mutex_new ();
imp->sym_table.init = dlsym (handle, "OMX_Init");
imp->sym_table.deinit = dlsym (handle, "OMX_Deinit");
imp->sym_table.get_handle = dlsym (handle, "OMX_GetHandle");
imp->sym_table.free_handle = dlsym (handle, "OMX_FreeHandle");
}
return imp;
}
コメント†