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
e9fba763
Commit
e9fba763
authored
Jun 14, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: Send vlc_InputSelectedStreamChanged.
parent
1c35d45f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
include/vlc_events.h
include/vlc_events.h
+5
-0
src/input/es_out.c
src/input/es_out.c
+3
-0
src/input/input.c
src/input/input.c
+1
-0
src/misc/events.c
src/misc/events.c
+1
-0
No files found.
include/vlc_events.h
View file @
e9fba763
...
@@ -114,6 +114,7 @@ typedef struct vlc_event_manager_t
...
@@ -114,6 +114,7 @@ typedef struct vlc_event_manager_t
typedef
enum
vlc_event_type_t
{
typedef
enum
vlc_event_type_t
{
/* Input (thread) events */
/* Input (thread) events */
vlc_InputStateChanged
,
vlc_InputStateChanged
,
vlc_InputSelectedStreamChanged
,
/* Input item events */
/* Input item events */
vlc_InputItemMetaChanged
,
vlc_InputItemMetaChanged
,
...
@@ -142,6 +143,10 @@ typedef struct vlc_event_t
...
@@ -142,6 +143,10 @@ typedef struct vlc_event_t
{
{
int
new_state
;
int
new_state
;
}
input_state_changed
;
}
input_state_changed
;
struct
vlc_input_selected_stream_changed
{
void
*
unused
;
}
input_selected_stream_changed
;
/* Input item events */
/* Input item events */
struct
vlc_input_item_meta_changed
struct
vlc_input_item_meta_changed
...
...
src/input/es_out.c
View file @
e9fba763
...
@@ -1699,6 +1699,9 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
...
@@ -1699,6 +1699,9 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
PL_UNLOCK
;
PL_UNLOCK
;
}
}
pl_Release
(
p_sys
->
p_input
);
pl_Release
(
p_sys
->
p_input
);
vlc_event_t
event
;
event
.
type
=
vlc_InputSelectedStreamChanged
;
vlc_event_send
(
&
p_sys
->
p_input
->
p
->
event_manager
,
&
event
);
}
}
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
src/input/input.c
View file @
e9fba763
...
@@ -169,6 +169,7 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
...
@@ -169,6 +169,7 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
vlc_event_manager_t
*
p_em
=
&
p_input
->
p
->
event_manager
;
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_init_with_vlc_object
(
p_em
,
p_input
);
vlc_event_manager_register_event_type
(
p_em
,
vlc_InputStateChanged
);
vlc_event_manager_register_event_type
(
p_em
,
vlc_InputStateChanged
);
vlc_event_manager_register_event_type
(
p_em
,
vlc_InputSelectedStreamChanged
);
/* Init Common fields */
/* Init Common fields */
p_input
->
b_eof
=
false
;
p_input
->
b_eof
=
false
;
...
...
src/misc/events.c
View file @
e9fba763
...
@@ -73,6 +73,7 @@ typedef struct vlc_event_listeners_group_t
...
@@ -73,6 +73,7 @@ typedef struct vlc_event_listeners_group_t
static
const
char
ppsz_event_type_to_name
[][
33
]
=
static
const
char
ppsz_event_type_to_name
[][
33
]
=
{
{
[
vlc_InputStateChanged
]
=
"vlc_InputStateChanged"
,
[
vlc_InputStateChanged
]
=
"vlc_InputStateChanged"
,
[
vlc_InputSelectedStreamChanged
]
=
"vlc_InputSelectedStreamChanged"
,
[
vlc_InputItemMetaChanged
]
=
"vlc_InputItemMetaChanged"
,
[
vlc_InputItemMetaChanged
]
=
"vlc_InputItemMetaChanged"
,
[
vlc_InputItemSubItemAdded
]
=
"vlc_InputItemSubItemAdded"
,
[
vlc_InputItemSubItemAdded
]
=
"vlc_InputItemSubItemAdded"
,
...
...
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