int codec_load_file(const char *plugin, struct codec_api *api) { char path[MAX_PATH]; codec_get_full_path(path, plugin); curr_handle = lc_open(path, codecbuf, CODEC_SIZE); if (curr_handle == NULL) { logf("Codec: cannot read file"); return CODEC_ERROR; } return codec_load_ram(api); }
int codec_load_file(const char *plugin, struct codec_api *api) { char path[MAX_PATH]; void *handle; codec_get_full_path(path, plugin); handle = lc_open(path, codecbuf, CODEC_SIZE); if (handle == NULL) { logf("Codec load error"); splashf(HZ*2, "Couldn't load codec: %s", path); return CODEC_ERROR; } return codec_load_ram(handle, api); }