Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
f135a526
Commit
f135a526
authored
Jan 16, 2010
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove tabs.
parent
c1e7c9f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
src/input/event.c
src/input/event.c
+27
-27
No files found.
src/input/event.c
View file @
f135a526
...
...
@@ -78,7 +78,7 @@ void input_SendEventLength( input_thread_t *p_input, mtime_t i_length )
{
vlc_value_t
val
;
/* FIXME ugly + what about meta change event ? */
/* FIXME ugly + what about meta change event ? */
if
(
var_GetTime
(
p_input
,
"length"
)
==
i_length
)
return
;
...
...
@@ -104,20 +104,20 @@ void input_SendEventRate( input_thread_t *p_input, int i_rate )
}
void
input_SendEventAudioDelay
(
input_thread_t
*
p_input
,
mtime_t
i_delay
)
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
i_time
=
i_delay
;
var_Change
(
p_input
,
"audio-delay"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
val
.
i_time
=
i_delay
;
var_Change
(
p_input
,
"audio-delay"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
Trigger
(
p_input
,
INPUT_EVENT_AUDIO_DELAY
);
}
void
input_SendEventSubtitleDelay
(
input_thread_t
*
p_input
,
mtime_t
i_delay
)
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
i_time
=
i_delay
;
var_Change
(
p_input
,
"spu-delay"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
val
.
i_time
=
i_delay
;
var_Change
(
p_input
,
"spu-delay"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
Trigger
(
p_input
,
INPUT_EVENT_SUBTITLE_DELAY
);
}
...
...
@@ -125,33 +125,33 @@ void input_SendEventSubtitleDelay( input_thread_t *p_input, mtime_t i_delay )
/* TODO and file name ? */
void
input_SendEventRecord
(
input_thread_t
*
p_input
,
bool
b_recording
)
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
b_bool
=
b_recording
;
var_Change
(
p_input
,
"record"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
val
.
b_bool
=
b_recording
;
var_Change
(
p_input
,
"record"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
Trigger
(
p_input
,
INPUT_EVENT_RECORD
);
}
void
input_SendEventTitle
(
input_thread_t
*
p_input
,
int
i_title
)
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
i_int
=
i_title
;
var_Change
(
p_input
,
"title"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
val
.
i_int
=
i_title
;
var_Change
(
p_input
,
"title"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
input_ControlVarTitle
(
p_input
,
i_title
);
input_ControlVarTitle
(
p_input
,
i_title
);
Trigger
(
p_input
,
INPUT_EVENT_TITLE
);
}
void
input_SendEventSeekpoint
(
input_thread_t
*
p_input
,
int
i_title
,
int
i_seekpoint
)
{
vlc_value_t
val
;
vlc_value_t
val
;
/* "chapter" */
val
.
i_int
=
i_seekpoint
;
var_Change
(
p_input
,
"chapter"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
val
.
i_int
=
i_seekpoint
;
var_Change
(
p_input
,
"chapter"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
/* "title %2i" */
char
psz_title
[
10
];
...
...
@@ -167,10 +167,10 @@ void input_SendEventSignal( input_thread_t *p_input, double f_quality, double f_
vlc_value_t
val
;
val
.
f_float
=
f_quality
;
var_Change
(
p_input
,
"signal-quality"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
var_Change
(
p_input
,
"signal-quality"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
val
.
f_float
=
f_strength
;
var_Change
(
p_input
,
"signal-strength"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
var_Change
(
p_input
,
"signal-strength"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
Trigger
(
p_input
,
INPUT_EVENT_SIGNAL
);
}
...
...
@@ -190,7 +190,7 @@ void input_SendEventCache( input_thread_t *p_input, double f_level )
vlc_value_t
val
;
val
.
f_float
=
f_level
;
var_Change
(
p_input
,
"cache"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
var_Change
(
p_input
,
"cache"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
Trigger
(
p_input
,
INPUT_EVENT_CACHE
);
}
...
...
@@ -202,19 +202,19 @@ void input_SendEventMeta( input_thread_t *p_input )
{
Trigger
(
p_input
,
INPUT_EVENT_ITEM_META
);
/* FIXME remove this ugliness ? */
vlc_event_t
event
;
/* FIXME remove this ugliness ? */
vlc_event_t
event
;
event
.
type
=
vlc_InputItemMetaChanged
;
event
.
u
.
input_item_meta_changed
.
meta_type
=
vlc_meta_ArtworkURL
;
vlc_event_send
(
&
p_input
->
p
->
p_item
->
event_manager
,
&
event
);
event
.
type
=
vlc_InputItemMetaChanged
;
event
.
u
.
input_item_meta_changed
.
meta_type
=
vlc_meta_ArtworkURL
;
vlc_event_send
(
&
p_input
->
p
->
p_item
->
event_manager
,
&
event
);
}
void
input_SendEventMetaInfo
(
input_thread_t
*
p_input
)
{
Trigger
(
p_input
,
INPUT_EVENT_ITEM_INFO
);
/* FIXME remove this ugliness */
/* FIXME remove this ugliness */
vlc_event_t
event
;
event
.
type
=
vlc_InputItemInfoChanged
;
...
...
@@ -225,7 +225,7 @@ void input_SendEventMetaName( input_thread_t *p_input, const char *psz_name )
{
Trigger
(
p_input
,
INPUT_EVENT_ITEM_NAME
);
/* FIXME remove this ugliness */
/* FIXME remove this ugliness */
vlc_event_t
event
;
event
.
type
=
vlc_InputItemNameChanged
;
...
...
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