Commit 2407d652 authored by hpi1's avatar hpi1

_index_open(): check if already opened

parent 20de6598
......@@ -529,11 +529,13 @@ static void _libbdplus_open(BLURAY *bd, const char *keyfile_path)
static int _index_open(BLURAY *bd)
{
char *file;
if (!bd->index) {
char *file;
file = str_printf("%s/BDMV/index.bdmv", bd->device_path);
bd->index = indx_parse(file);
X_FREE(file);
file = str_printf("%s/BDMV/index.bdmv", bd->device_path);
bd->index = indx_parse(file);
X_FREE(file);
}
return !!bd->index;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment