Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
libbluray
Commits
7995f549
Commit
7995f549
authored
Oct 11, 2010
by
hpi1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics (indent)
parent
a4e31f67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/libbluray/register.c
src/libbluray/register.c
+10
-10
No files found.
src/libbluray/register.c
View file @
7995f549
...
...
@@ -222,21 +222,21 @@ void bd_psr_register_cb (BD_REGISTERS *p, void (*callback)(void*,BD_PSR_EVENT*)
void
bd_psr_unregister_cb
(
BD_REGISTERS
*
p
,
void
(
*
callback
)(
void
*
,
BD_PSR_EVENT
*
),
void
*
cb_handle
)
{
unsigned
i
=
0
;
unsigned
i
=
0
;
bd_psr_lock
(
p
);
bd_psr_lock
(
p
);
while
(
i
<
p
->
num_cb
)
{
if
(
p
->
cb
[
i
].
handle
==
cb_handle
&&
p
->
cb
[
i
].
cb
==
callback
)
{
if
(
--
p
->
num_cb
)
{
memmove
(
p
->
cb
+
i
,
p
->
cb
+
i
+
1
,
sizeof
(
PSR_CB_DATA
)
*
p
->
num_cb
);
continue
;
}
while
(
i
<
p
->
num_cb
)
{
if
(
p
->
cb
[
i
].
handle
==
cb_handle
&&
p
->
cb
[
i
].
cb
==
callback
)
{
if
(
--
p
->
num_cb
)
{
memmove
(
p
->
cb
+
i
,
p
->
cb
+
i
+
1
,
sizeof
(
PSR_CB_DATA
)
*
p
->
num_cb
);
continue
;
}
i
++
;
}
i
++
;
}
bd_psr_unlock
(
p
);
bd_psr_unlock
(
p
);
}
/*
...
...
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