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
bf117f4d
Commit
bf117f4d
authored
Apr 15, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: Set a timer for input launching.
parent
d5264484
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
include/vlc_messages.h
include/vlc_messages.h
+1
-0
src/input/input.c
src/input/input.c
+20
-1
No files found.
include/vlc_messages.h
View file @
bf117f4d
...
...
@@ -229,6 +229,7 @@ enum
STATS_TIMER_ML_DUMP
,
STATS_TIMER_INTERACTION
,
STATS_TIMER_PREPARSE
,
STATS_TIMER_INPUT_LAUNCHING
,
STATS_TIMER_SKINS_PLAYTREE_IMAGE
,
};
...
...
src/input/input.c
View file @
bf117f4d
...
...
@@ -139,6 +139,19 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
msg_Err
(
p_parent
,
"out of memory"
);
return
NULL
;
}
/* Construct a nice name for the input timer */
char
psz_timer_name
[
255
];
char
*
psz_name
=
input_item_GetName
(
p_item
);
snprintf
(
psz_timer_name
,
sizeof
(
psz_timer_name
),
"input launching for '%s'"
,
psz_name
);
free
(
psz_name
);
/* Start a timer to mesure how long it takes
* to launch an input */
stats_TimerStart
(
p_input
,
psz_timer_name
,
STATS_TIMER_INPUT_LAUNCHING
);
MALLOC_NULL
(
p_input
->
p
,
input_thread_private_t
);
/* One "randomly" selected input thread is responsible for computing
...
...
@@ -307,6 +320,9 @@ static void Destructor( input_thread_t * p_input )
{
input_thread_private_t
*
priv
=
p_input
->
p
;
stats_TimerDump
(
p_input
,
STATS_TIMER_INPUT_LAUNCHING
);
stats_TimerClean
(
p_input
,
STATS_TIMER_INPUT_LAUNCHING
);
if
(
priv
->
b_owns_its_sout
&&
priv
->
p_sout
)
{
if
(
priv
->
b_sout_keep
)
...
...
@@ -603,6 +619,9 @@ static void MainLoop( input_thread_t *p_input )
int64_t
i_intf_update
=
0
;
int
i_updates
=
0
;
/* Stop the timer */
stats_TimerStop
(
p_input
,
STATS_TIMER_INPUT_LAUNCHING
);
while
(
!
p_input
->
b_die
&&
!
p_input
->
b_error
&&
!
p_input
->
p
->
input
.
b_eof
)
{
bool
b_force_update
=
false
;
...
...
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