Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libbluray
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
libbluray
Commits
c25df626
Commit
c25df626
authored
Oct 20, 2009
by
cRTrn13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ditto
parent
2f64c0ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
src/bluray.c
src/bluray.c
+4
-8
No files found.
src/bluray.c
View file @
c25df626
...
...
@@ -21,10 +21,8 @@ BLURAY *bd_open(const char* device_path, const char* keyfile_path)
if
((
bd
->
h_libaacs
=
dlopen
(
"libaacs.so"
,
RTLD_LAZY
)))
{
DEBUG
(
DBG_BLURAY
,
"Downloaded libaacs (0x%08x)
\n
"
,
bd
->
h_libaacs
);
// typedef AACS_KEYS* (*fptr)();
fptr_p_void
fptr_s
=
dlsym
(
bd
->
h_libaacs
,
"aacs_open"
);
bd
->
aacs
=
fptr_s
(
device_path
,
keyfile_path
);
fptr_p_void
fptr
=
dlsym
(
bd
->
h_libaacs
,
"aacs_open"
);
bd
->
aacs
=
fptr
(
device_path
,
keyfile_path
);
}
else
{
DEBUG
(
DBG_BLURAY
,
"libaacs not present
\n
"
);
}
...
...
@@ -45,10 +43,8 @@ BLURAY *bd_open(const char* device_path, const char* keyfile_path)
void
bd_close
(
BLURAY
*
bd
)
{
if
(
bd
->
h_libaacs
)
{
typedef
void
*
(
*
fptr
)();
fptr
fptr_s
=
dlsym
(
bd
->
h_libaacs
,
"aacs_close"
);
fptr_s
(
bd
->
aacs
);
fptr_p_void
fptr
=
dlsym
(
bd
->
h_libaacs
,
"aacs_close"
);
fptr
(
bd
->
aacs
);
dlclose
(
bd
->
h_libaacs
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment