Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
5411dceb
Commit
5411dceb
authored
Feb 29, 2008
by
Faustino Osuna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control/event.c: Fix infinite loop.
parent
141d39e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/control/event.c
src/control/event.c
+4
-4
No files found.
src/control/event.c
View file @
5411dceb
...
...
@@ -368,7 +368,7 @@ void libvlc_event_detach_lock_state( libvlc_event_manager_t *p_event_manager,
{
libvlc_event_listeners_group_t
*
listeners_group
;
libvlc_event_listener_t
*
listener
;
int
i
;
int
i
,
j
;
if
(
lockstate
==
libvlc_UnLocked
)
vlc_mutex_lock
(
&
p_event_manager
->
event_sending_lock
);
...
...
@@ -378,16 +378,16 @@ void libvlc_event_detach_lock_state( libvlc_event_manager_t *p_event_manager,
listeners_group
=
vlc_array_item_at_index
(
&
p_event_manager
->
listeners_groups
,
i
);
if
(
listeners_group
->
event_type
==
event_type
)
{
for
(
i
=
0
;
i
<
vlc_array_count
(
&
listeners_group
->
listeners
);
i
++
)
for
(
j
=
0
;
j
<
vlc_array_count
(
&
listeners_group
->
listeners
);
j
++
)
{
listener
=
vlc_array_item_at_index
(
&
listeners_group
->
listeners
,
i
);
listener
=
vlc_array_item_at_index
(
&
listeners_group
->
listeners
,
j
);
if
(
listener
->
event_type
==
event_type
&&
listener
->
pf_callback
==
pf_callback
&&
listener
->
p_user_data
==
p_user_data
)
{
/* that's our listener */
free
(
listener
);
vlc_array_remove
(
&
listeners_group
->
listeners
,
i
);
vlc_array_remove
(
&
listeners_group
->
listeners
,
j
);
vlc_mutex_unlock
(
&
p_event_manager
->
object_lock
);
if
(
lockstate
==
libvlc_UnLocked
)
vlc_mutex_unlock
(
&
p_event_manager
->
event_sending_lock
);
...
...
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