Commit a9c8e113 authored by hpi1's avatar hpi1

Cosmetics (indent)

parent fc29a401
......@@ -538,35 +538,35 @@ static int _libbdplus_open(BLURAY *bd, const char *keyfile_path)
0xC5,0x43,0xEF,0x2A,0x15,0x0E,0x50,0xC4,0xE2,0xCA,
0x71,0x65,0xB1,0x7C,0xA7,0xCB}; // FIXME
DEBUG(DBG_BDPLUS, "attempting to load libbdplus\n");
DEBUG(DBG_BDPLUS, "attempting to load libbdplus\n");
#ifdef DLOPEN_CRYPTO_LIBS
if ((bd->h_libbdplus = dl_dlopen("libbdplus", "0"))) {
DEBUG(DBG_BLURAY, "Downloaded libbdplus (%p)\n", bd->h_libbdplus);
if ((bd->h_libbdplus = dl_dlopen("libbdplus", "0"))) {
DEBUG(DBG_BLURAY, "Downloaded libbdplus (%p)\n", bd->h_libbdplus);
fptr_p_void bdplus_init = dl_dlsym(bd->h_libbdplus, "bdplus_init");
//bdplus_t *bdplus_init(path,configfile_path,*vid );
if (bdplus_init)
bd->bdplus = bdplus_init(bd->device_path, keyfile_path, vid);
if (bd->bdplus) {
// Since we will call these functions a lot, we assign them
// now.
bd->bdplus_seek = dl_dlsym(bd->h_libbdplus, "bdplus_seek");
bd->bdplus_fixup = dl_dlsym(bd->h_libbdplus, "bdplus_fixup");
} else {
dl_dlclose(bd->h_libbdplus);
bd->h_libbdplus = NULL;
}
fptr_p_void bdplus_init = dl_dlsym(bd->h_libbdplus, "bdplus_init");
//bdplus_t *bdplus_init(path,configfile_path,*vid );
if (bdplus_init) {
bd->bdplus = bdplus_init(bd->device_path, keyfile_path, vid);
}
if (bd->bdplus) {
// Since we will call these functions a lot, we assign them
// now.
bd->bdplus_seek = dl_dlsym(bd->h_libbdplus, "bdplus_seek");
bd->bdplus_fixup = dl_dlsym(bd->h_libbdplus, "bdplus_fixup");
} else {
dl_dlclose(bd->h_libbdplus);
bd->h_libbdplus = NULL;
}
}
#else
DEBUG(DBG_BLURAY,"Using libbdplus via normal linking\n");
DEBUG(DBG_BLURAY,"Using libbdplus via normal linking\n");
bd->bdplus = bdplus_init(bd->device_path, keyfile_path, vid);
bd->bdplus = bdplus_init(bd->device_path, keyfile_path, vid);
// Since we will call these functions a lot, we assign them
// now.
bd->bdplus_seek = &bdplus_seek;
bd->bdplus_fixup = &bdplus_fixup;
// Since we will call these functions a lot, we assign them
// now.
bd->bdplus_seek = &bdplus_seek;
bd->bdplus_fixup = &bdplus_fixup;
#endif
return !!bd->bdplus;
......
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