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
9ba83f6d
Commit
9ba83f6d
authored
Feb 25, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/events.c: Fix a case about a callback non being called.
parent
8cfa47d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/misc/events.c
src/misc/events.c
+9
-1
No files found.
src/misc/events.c
View file @
9ba83f6d
...
...
@@ -80,13 +80,21 @@ static const char * ppsz_event_type_to_name[] =
};
#endif
static
vlc_bool_t
listeners_are_equal
(
vlc_event_listener_t
*
listener1
,
vlc_event_listener_t
*
listener2
)
{
return
listener1
->
pf_callback
==
listener2
->
pf_callback
&&
listener1
->
p_user_data
==
listener2
->
p_user_data
;
}
static
vlc_bool_t
group_contains_listener
(
vlc_event_listeners_group_t
*
group
,
vlc_event_listener_t
*
searched_listener
)
{
vlc_event_listener_t
*
listener
;
FOREACH_ARRAY
(
listener
,
group
->
listeners
)
if
(
searched_listener
==
listener
)
if
(
listeners_are_equal
(
searched_listener
,
listener
)
)
return
VLC_TRUE
;
FOREACH_END
()
return
VLC_FALSE
;
...
...
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