Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
ebd136c4
Commit
ebd136c4
authored
Jul 29, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some old stats fixes
parent
9056d31f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
include/vlc_messages.h
include/vlc_messages.h
+4
-0
src/misc/stats.c
src/misc/stats.c
+1
-4
No files found.
include/vlc_messages.h
View file @
ebd136c4
...
...
@@ -281,6 +281,7 @@ static inline int __stats_GetInteger( vlc_object_t *p_obj, counter_t *p_counter,
{
int
i_ret
;
vlc_value_t
val
;
val
.
i_int
=
0
;
if
(
!
p_counter
)
return
VLC_EGENERIC
;
i_ret
=
__stats_Get
(
p_obj
,
p_counter
,
&
val
);
*
value
=
val
.
i_int
;
return
i_ret
;
...
...
@@ -292,6 +293,7 @@ static inline int __stats_GetFloat( vlc_object_t *p_obj, counter_t *p_counter,
{
int
i_ret
;
vlc_value_t
val
;
val
.
f_float
=
0
.
0
;
if
(
!
p_counter
)
return
VLC_EGENERIC
;
i_ret
=
__stats_Get
(
p_obj
,
p_counter
,
&
val
);
*
value
=
val
.
f_float
;
return
i_ret
;
...
...
@@ -303,6 +305,7 @@ static inline int __stats_UpdateInteger( vlc_object_t *p_obj,counter_t *p_co,
int
i_ret
;
vlc_value_t
val
;
vlc_value_t
new_val
;
new_val
.
i_int
=
0
;
if
(
!
p_co
)
return
VLC_EGENERIC
;
val
.
i_int
=
i
;
i_ret
=
__stats_Update
(
p_obj
,
p_co
,
val
,
&
new_val
);
if
(
pi_new
)
...
...
@@ -316,6 +319,7 @@ static inline int __stats_UpdateFloat( vlc_object_t *p_obj, counter_t *p_co,
vlc_value_t
val
;
int
i_ret
;
vlc_value_t
new_val
;
new_val
.
f_float
=
0
.
0
;
if
(
!
p_co
)
return
VLC_EGENERIC
;
val
.
f_float
=
f
;
i_ret
=
__stats_Update
(
p_obj
,
p_co
,
val
,
&
new_val
);
if
(
pf_new
)
...
...
src/misc/stats.c
View file @
ebd136c4
...
...
@@ -54,10 +54,7 @@ static void TimerDump( vlc_object_t *p_this, counter_t *p_counter, vlc_bool_t);
counter_t
*
__stats_CounterCreate
(
vlc_object_t
*
p_this
,
int
i_type
,
int
i_compute_type
)
{
counter_t
*
p_counter
;
if
(
!
p_this
->
p_libvlc
->
b_stats
)
return
NULL
;
p_counter
=
(
counter_t
*
)
malloc
(
sizeof
(
counter_t
)
)
;
counter_t
*
p_counter
=
(
counter_t
*
)
malloc
(
sizeof
(
counter_t
)
)
;
p_counter
->
i_compute_type
=
i_compute_type
;
p_counter
->
i_type
=
i_type
;
...
...
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