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
6a938c3c
Commit
6a938c3c
authored
Jun 14, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: Register vlc_InputStateChanged event.
parent
acb1a3ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
include/vlc_events.h
include/vlc_events.h
+9
-0
src/input/input.c
src/input/input.c
+3
-2
src/misc/events.c
src/misc/events.c
+7
-0
No files found.
include/vlc_events.h
View file @
6a938c3c
...
...
@@ -112,6 +112,9 @@ typedef struct vlc_event_manager_t
/* List of event */
/* Be sure to keep sync-ed with misc/events.c debug name table */
typedef
enum
vlc_event_type_t
{
/* Input (thread) events */
vlc_InputStateChanged
,
/* Input item events */
vlc_InputItemMetaChanged
,
vlc_InputItemSubItemAdded
,
...
...
@@ -132,6 +135,12 @@ typedef struct vlc_event_t
void
*
p_obj
;
/* Sender object, automatically filled by vlc_event_send() */
union
vlc_event_type_specific
{
/* Input (thread) events */
struct
vlc_input_state_changed
{
int
new_state
;
}
vlc_input_state_changed
;
/* Input item events */
struct
vlc_input_item_meta_changed
{
...
...
src/input/input.c
View file @
6a938c3c
...
...
@@ -167,8 +167,9 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
p_input
->
psz_header
=
psz_header
?
strdup
(
psz_header
)
:
NULL
;
/* Init events */
vlc_event_manager_init_with_vlc_object
(
&
p_input
->
p
->
event_manager
,
p_input
);
vlc_event_manager_t
*
p_em
=
&
p_input
->
p
->
event_manager
;
vlc_event_manager_init_with_vlc_object
(
p_em
,
p_input
);
vlc_event_manager_register_event_type
(
p_em
,
vlc_InputStateChanged
);
/* Init Common fields */
p_input
->
b_eof
=
false
;
...
...
src/misc/events.c
View file @
6a938c3c
...
...
@@ -72,10 +72,17 @@ typedef struct vlc_event_listeners_group_t
#ifdef DEBUG_EVENT
static
const
char
ppsz_event_type_to_name
[][
33
]
=
{
[
vlc_InputStateChanged
]
=
"vlc_InputStateChanged"
,
[
vlc_InputItemMetaChanged
]
=
"vlc_InputItemMetaChanged"
,
[
vlc_InputItemSubItemAdded
]
=
"vlc_InputItemSubItemAdded"
,
[
vlc_InputItemDurationChanged
]
=
"vlc_InputItemDurationChanged"
,
[
vlc_InputItemPreparsedChanged
]
=
"vlc_InputItemPreparsedChanged"
,
[
vlc_ServicesDiscoveryItemAdded
]
=
"vlc_ServicesDiscoveryItemAdded"
,
[
vlc_ServicesDiscoveryItemRemoved
]
=
"vlc_ServicesDiscoveryItemRemoved"
[
vlc_ServicesDiscoveryStarted
]
=
"vlc_ServicesDiscoveryStarted"
[
vlc_ServicesDiscoveryEnded
]
=
"vlc_ServicesDiscoveryEnded"
};
#endif
...
...
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