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
21c90595
Commit
21c90595
authored
Apr 15, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
module: Set up a timer for moduleNeed().
parent
bf117f4d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
include/vlc_messages.h
include/vlc_messages.h
+1
-0
src/modules/modules.c
src/modules/modules.c
+9
-0
No files found.
include/vlc_messages.h
View file @
21c90595
...
@@ -230,6 +230,7 @@ enum
...
@@ -230,6 +230,7 @@ enum
STATS_TIMER_INTERACTION
,
STATS_TIMER_INTERACTION
,
STATS_TIMER_PREPARSE
,
STATS_TIMER_PREPARSE
,
STATS_TIMER_INPUT_LAUNCHING
,
STATS_TIMER_INPUT_LAUNCHING
,
STATS_TIMER_MODULE_NEED
,
STATS_TIMER_SKINS_PLAYTREE_IMAGE
,
STATS_TIMER_SKINS_PLAYTREE_IMAGE
,
};
};
...
...
src/modules/modules.c
View file @
21c90595
...
@@ -355,6 +355,8 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
...
@@ -355,6 +355,8 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
{
{
typedef
struct
module_list_t
module_list_t
;
typedef
struct
module_list_t
module_list_t
;
stats_TimerStart
(
p_this
,
"module_Need()"
,
STATS_TIMER_MODULE_NEED
);
struct
module_list_t
struct
module_list_t
{
{
module_t
*
p_module
;
module_t
*
p_module
;
...
@@ -394,6 +396,9 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
...
@@ -394,6 +396,9 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
if
(
!
strcmp
(
psz_name
,
"none"
)
)
if
(
!
strcmp
(
psz_name
,
"none"
)
)
{
{
free
(
psz_var
);
free
(
psz_var
);
stats_TimerStop
(
p_this
,
STATS_TIMER_MODULE_NEED
);
stats_TimerDump
(
p_this
,
STATS_TIMER_MODULE_NEED
);
stats_TimerClean
(
p_this
,
STATS_TIMER_MODULE_NEED
);
return
NULL
;
return
NULL
;
}
}
...
@@ -647,6 +652,10 @@ found_shortcut:
...
@@ -647,6 +652,10 @@ found_shortcut:
free
(
psz_shortcuts
);
free
(
psz_shortcuts
);
free
(
psz_var
);
free
(
psz_var
);
stats_TimerStop
(
p_this
,
STATS_TIMER_MODULE_NEED
);
stats_TimerDump
(
p_this
,
STATS_TIMER_MODULE_NEED
);
stats_TimerClean
(
p_this
,
STATS_TIMER_MODULE_NEED
);
/* Don't forget that the module is still locked */
/* Don't forget that the module is still locked */
return
p_module
;
return
p_module
;
}
}
...
...
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