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
b2efc40a
Commit
b2efc40a
authored
Dec 23, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added INPUT_EVENT_DEAD event.
parent
81ccc88f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
2 deletions
+16
-2
include/vlc_input.h
include/vlc_input.h
+4
-0
src/input/event.c
src/input/event.c
+7
-0
src/input/event.h
src/input/event.h
+1
-0
src/input/input.c
src/input/input.c
+4
-2
No files found.
include/vlc_input.h
View file @
b2efc40a
...
@@ -520,8 +520,12 @@ typedef enum input_event_type_e
...
@@ -520,8 +520,12 @@ typedef enum input_event_type_e
{
{
/* "state" has changed */
/* "state" has changed */
INPUT_EVENT_STATE
,
INPUT_EVENT_STATE
,
/* b_dead is true */
INPUT_EVENT_DEAD
,
/* "rate" has changed */
/* "rate" has changed */
INPUT_EVENT_RATE
,
INPUT_EVENT_RATE
,
/* At least one of "position" or "time" or "length" has changed */
/* At least one of "position" or "time" or "length" has changed */
INPUT_EVENT_TIMES
,
INPUT_EVENT_TIMES
,
...
...
src/input/event.c
View file @
b2efc40a
...
@@ -39,6 +39,13 @@ static void Trigger( input_thread_t *p_input, int i_type );
...
@@ -39,6 +39,13 @@ static void Trigger( input_thread_t *p_input, int i_type );
/*****************************************************************************
/*****************************************************************************
* Event for input.c
* Event for input.c
*****************************************************************************/
*****************************************************************************/
void
input_SendEventDead
(
input_thread_t
*
p_input
)
{
p_input
->
b_dead
=
true
;
Trigger
(
p_input
,
INPUT_EVENT_DEAD
);
}
void
input_SendEventTimes
(
input_thread_t
*
p_input
,
void
input_SendEventTimes
(
input_thread_t
*
p_input
,
double
f_position
,
mtime_t
i_time
,
mtime_t
i_length
)
double
f_position
,
mtime_t
i_time
,
mtime_t
i_length
)
{
{
...
...
src/input/event.h
View file @
b2efc40a
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
/*****************************************************************************
/*****************************************************************************
* Event for input.c
* Event for input.c
*****************************************************************************/
*****************************************************************************/
void
input_SendEventDead
(
input_thread_t
*
p_input
);
void
input_SendEventTimes
(
input_thread_t
*
p_input
,
double
f_position
,
mtime_t
i_time
,
mtime_t
i_length
);
void
input_SendEventTimes
(
input_thread_t
*
p_input
,
double
f_position
,
mtime_t
i_time
,
mtime_t
i_length
);
void
input_SendEventStatistics
(
input_thread_t
*
p_input
);
void
input_SendEventStatistics
(
input_thread_t
*
p_input
);
void
input_SendEventRate
(
input_thread_t
*
p_input
,
int
i_rate
);
void
input_SendEventRate
(
input_thread_t
*
p_input
,
int
i_rate
);
...
...
src/input/input.c
View file @
b2efc40a
...
@@ -520,7 +520,9 @@ static void *Run( vlc_object_t *p_this )
...
@@ -520,7 +520,9 @@ static void *Run( vlc_object_t *p_this )
End
(
p_input
);
End
(
p_input
);
exit:
exit:
p_input
->
b_dead
=
true
;
/* Tell we're dead */
input_SendEventDead
(
p_input
);
vlc_restorecancel
(
canc
);
vlc_restorecancel
(
canc
);
return
NULL
;
return
NULL
;
}
}
...
@@ -1398,7 +1400,7 @@ static void End( input_thread_t * p_input )
...
@@ -1398,7 +1400,7 @@ static void End( input_thread_t * p_input )
}
}
/* Tell we're dead */
/* Tell we're dead */
p_input
->
b_dead
=
true
;
input_SendEventDead
(
p_input
)
;
}
}
/*****************************************************************************
/*****************************************************************************
...
...
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