g_topology_lock();
if (buf == NULL)
goto end;
eli_metadata_decode(buf, md);
error = eli_metadata_decode(buf, md);
if (error != 0)
end:
if (buf != NULL)
g_free(buf);