Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
50e93649
Commit
50e93649
authored
Aug 25, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/events.c: Fix event debugging.
parent
130484c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/misc/events.c
src/misc/events.c
+8
-5
No files found.
src/misc/events.c
View file @
50e93649
...
...
@@ -67,7 +67,7 @@ static const char * ppsz_event_type_to_name[] =
[
vlc_InputItemSubItemAdded
]
=
"vlc_InputItemSubItemAdded"
,
[
vlc_ServicesDiscoveryItemAdded
]
=
"vlc_ServicesDiscoveryItemAdded"
,
[
vlc_ServicesDiscoveryItemRemoved
]
=
"vlc_ServicesDiscoveryItemRemoved"
}
}
;
#endif
/*****************************************************************************
...
...
@@ -155,9 +155,10 @@ void vlc_event_send( vlc_event_manager_t * p_em,
func
=
listener
->
pf_callback
;
user_data
=
listener
->
p_user_data
;
#ifdef DEBUG_EVENT
msg_Dbg
(
"Calling '%s' with a '%s' event (data %p)
\n
"
,
msg_Dbg
(
p_em
->
p_parent_object
,
"Calling '%s' with a '%s' event (data %p)"
,
listener
->
psz_debug_name
,
ppsz_event_type_to_name
[
event_
type
],
ppsz_event_type_to_name
[
p_event
->
type
],
listener
->
p_user_data
);
#endif
/* This is safe to do that because we are sure
...
...
@@ -202,7 +203,8 @@ int __vlc_event_attach( vlc_event_manager_t * p_em,
{
ARRAY_APPEND
(
listeners_group
->
listeners
,
listener
);
#ifdef DEBUG_EVENT
msg_Dbg
(
"Listening to '%s' event with '%s' (data %p)
\n
"
,
msg_Dbg
(
p_em
->
p_parent_object
,
"Listening to '%s' event with '%s' (data %p)"
,
ppsz_event_type_to_name
[
event_type
],
listener
->
psz_debug_name
,
listener
->
p_user_data
);
...
...
@@ -242,7 +244,8 @@ int vlc_event_detach( vlc_event_manager_t *p_em,
fe_idx
/* This comes from the macro (and that's why
I hate macro) */
);
#ifdef DEBUG_EVENT
msg_Dbg
(
"Detaching '%s' from '%s' event (data %p)
\n
"
,
msg_Dbg
(
p_em
->
p_parent_object
,
"Detaching '%s' from '%s' event (data %p)
\n
"
,
listener
->
psz_debug_name
,
ppsz_event_type_to_name
[
event_type
],
listener
->
p_user_data
);
...
...
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