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
60c51db9
Commit
60c51db9
authored
Jan 13, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix stats crash
parent
60a7a1fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/misc/stats.c
src/misc/stats.c
+8
-1
No files found.
src/misc/stats.c
View file @
60c51db9
...
...
@@ -162,7 +162,14 @@ int __stats_Get( vlc_object_t *p_this, int i_object_id, char *psz_name, vlc_valu
*
val
=
p_counter
->
pp_samples
[
0
]
->
value
;
break
;
case
STATS_DERIVATIVE
:
if
(
p_counter
->
i_type
==
VLC_VAR_INTEGER
)
/* Not ready yet */
if
(
p_counter
->
i_samples
<
2
)
{
vlc_mutex_unlock
(
&
p_handler
->
object_lock
);
val
->
i_int
=
0
;
val
->
f_float
=
0
.
0
;
return
VLC_EGENERIC
;
}
if
(
p_counter
->
i_type
==
VLC_VAR_INTEGER
)
{
float
f
=
(
p_counter
->
pp_samples
[
0
]
->
value
.
i_int
-
p_counter
->
pp_samples
[
1
]
->
value
.
i_int
)
/
...
...
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