Commit c5e9f910 authored by hpi1's avatar hpi1

Use user filesystem handler with libaacs

parent 63e308d9
????-??-??:
- Use user filesystem handler with libaacs
- Fixes to HDMV menu rendering
- Optimized HDMV menu rendering
- Support for sound effects in HDMV menus
......
......@@ -44,6 +44,8 @@
BD_PRIVATE extern BD_FILE_H* (*file_open)(const char* filename, const char *mode);
BD_PRIVATE BD_FILE_OPEN file_open_default(void);
/*
* directory access
*/
......
......@@ -110,3 +110,8 @@ static BD_FILE_H *file_open_linux(const char* filename, const char *mode)
}
BD_FILE_H* (*file_open)(const char* filename, const char *mode) = file_open_linux;
BD_FILE_OPEN file_open_default(void)
{
return file_open_linux;
}
......@@ -631,6 +631,12 @@ static int _libaacs_load(BLURAY *bd)
if (bd->libaacs_open && bd->libaacs_decrypt_unit) {
BD_DEBUG(DBG_BLURAY, "Loaded libaacs (%p)\n", bd->h_libaacs);
bd->disc_info.libaacs_detected = 1;
if (file_open != file_open_default()) {
BD_DEBUG(DBG_BLURAY, "Registering libaacs filesystem handler %p (%p)\n", file_open, bd->h_libaacs);
DL_CALL(bd->h_libaacs, aacs_register_file, file_open);
}
return 1;
} else {
......
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