Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
aa31cdc3
Commit
aa31cdc3
authored
Nov 23, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added INPUT_EVENT_TELETEXT.
parent
23f6c1e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
5 deletions
+20
-5
include/vlc_input.h
include/vlc_input.h
+3
-1
src/input/es_out.c
src/input/es_out.c
+4
-4
src/input/event.c
src/input/event.c
+10
-0
src/input/event.h
src/input/event.h
+3
-0
No files found.
include/vlc_input.h
View file @
aa31cdc3
...
...
@@ -442,7 +442,7 @@ struct input_thread_t
* - "can-rate"
* - "can-rewind"
* - "can-record" (if a stream can be recorded while playing)
* - "teletext-es" to get the index of spu track that is teletext -
-
1 if no teletext)
* - "teletext-es" to get the index of spu track that is teletext -1 if no teletext)
* - "signal-quality"
* - "signal-strength"
*
...
...
@@ -541,6 +541,8 @@ typedef enum input_event_type_e
INPUT_EVENT_PROGRAM
,
/* A ES has been added or removed or selected */
INPUT_EVENT_ES
,
/* "teletext-es" has changed */
INPUT_EVENT_TELETEXT
,
/* "record" has changed */
INPUT_EVENT_RECORD
,
...
...
src/input/es_out.c
View file @
aa31cdc3
...
...
@@ -800,9 +800,9 @@ static void EsOutESVarUpdateGeneric( es_out_t *out, int i_id, es_format_t *fmt,
if
(
b_delete
)
{
/* TODO
even
t */
/* TODO
it should probably be a lis
t */
if
(
b_teletext
)
var_SetInteger
(
p_sys
->
p_input
,
"teletext-es"
,
-
1
);
input_SendEventTeletext
(
p_sys
->
p_input
,
-
1
);
input_SendEventEsDel
(
p_input
,
SPU_ES
,
i_id
);
return
;
...
...
@@ -860,9 +860,9 @@ static void EsOutESVarUpdateGeneric( es_out_t *out, int i_id, es_format_t *fmt,
if
(
b_teletext
)
{
/* TODO
even
t */
/* TODO
it should probably be a lis
t */
if
(
var_GetInteger
(
p_sys
->
p_input
,
"teletext-es"
)
<
0
)
var_SetInteger
(
p_sys
->
p_input
,
"teletext-es"
,
i_id
);
input_SendEventTeletext
(
p_sys
->
p_input
,
i_id
);
}
}
...
...
src/input/event.c
View file @
aa31cdc3
...
...
@@ -288,6 +288,16 @@ void input_SendEventEsSelect( input_thread_t *p_input, int i_cat, int i_id )
vlc_event_send
(
&
p_input
->
p
->
event_manager
,
&
event
);
}
void
input_SendEventTeletext
(
input_thread_t
*
p_input
,
int
i_id
)
{
vlc_value_t
val
;
val
.
i_int
=
i_id
;
var_Change
(
p_input
,
"teletext-es"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
Trigger
(
p_input
,
INPUT_EVENT_TELETEXT
);
}
void
input_SendEventVout
(
input_thread_t
*
p_input
)
{
Trigger
(
p_input
,
INPUT_EVENT_VOUT
);
...
...
src/input/event.h
View file @
aa31cdc3
...
...
@@ -63,10 +63,13 @@ void input_SendEventProgramAdd( input_thread_t *p_input,
int
i_program
,
const
char
*
psz_text
);
void
input_SendEventProgramDel
(
input_thread_t
*
p_input
,
int
i_program
);
void
input_SendEventProgramSelect
(
input_thread_t
*
p_input
,
int
i_program
);
void
input_SendEventEsDel
(
input_thread_t
*
p_input
,
int
i_cat
,
int
i_id
);
void
input_SendEventEsAdd
(
input_thread_t
*
p_input
,
int
i_cat
,
int
i_id
,
const
char
*
psz_text
);
void
input_SendEventEsSelect
(
input_thread_t
*
p_input
,
int
i_cat
,
int
i_id
);
/* i_id == -1 will unselect */
void
input_SendEventTeletext
(
input_thread_t
*
p_input
,
int
i_id
);
/*****************************************************************************
* Event for decoder.c
*****************************************************************************/
...
...
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